Detecting a collision between the ground and player