Fixed up the animation state machine

Controls should feel a lot less sluggish.