Detect whether the player is on the ground properly.