onGround check added