Fix movement animation glitch

Fix bug where changing directions while moving would cause
the protagonist's sprite to animate improperly