refactoring Animation FSM to Class rodion