created methods in HitBox, fixed syntax error in main