Fixed the player so that it only animates while moving