Added Player class and its connection with StateMachine