Added Animation and player input

The state changes while the player Animation remains on screen, allowing
for smooth transition between states.