Problem with constructor

hey ya’ll! My code is almost complete but I am having a problem with one of my classes not initializing a function I made. Specifically the “kill” function ( atarget.kill(); ). it says that kill() expects parameters like “kill(Ball)” however when I put Ball in it doesn’t work. Same with aBall. anyone know what is wrong? here is the code in question.
from a separate class
void kill(Ball aBall){

if(bottom>=aBall.c1d+2.5 &&front>=aBall.c1d+2.5){
   isCrashed=true;
   println("hit");

}
}
from the constructor

for (target atarget : targetList) {

atarget.render();
atarget.wallDetect();
atarget.move();
atarget.reset();

//where the problem is
atarget.kill();

for (laffey aLaffey : laffeyList) {
  aTarget.crash(aLaffey);
}
//println(aTarget.isCrashed);

}
}

Those code pieces are hard to put together and I can’t say just based on them what’s wrong. My guess is that your if statement if(bottom>=aBall.c1d+2.5 &&front>=aBall.c1d+2.5) isn’t working as you expect.