Changed HeroController, separated the update of the animation to the state.

Still not working in online.