Sprite Animation for Player: Transition between states and playing the appropriate animation