Adding return to canHit() method