fixed isntOnGround function