trying to make the player actually not get stuck in that infinite loop.