started work on animation state machine