Added StateMachine for change player action