check if on ground when applying gravity & jumping