Made changes to Head jump function

checking to see the collision detection and head jump