fixed small bug in if statement for hasJumped