rename hitBox() to boxCollisionDetection & rewrite function