Fixed the player mechanics