Added ground raycast to avoid getting stuck in the floor