Fixed the CheckHit() equation