@Override
    public void messageReceived(Client source, Message m) {
        if(m instanceof StartGameMessage) {
            stateSwitch = true;
            stateManager.detach(this);
            stateManager.attach(new GameAppState(commonsConfig, client));
        }
    }