Added a interface to listener class GameStateMachine