Fixed sprite animation to work nicely

Sprites are now drawn depending on the player state