public synchronized void playerDisconnect(Channel channel) {
        if (channel.equals(channel1)) {
            try {
                if (channel2.isOpen())
                    channel2.write(MessageFactory.createGameOverMessage(1));
                GameWorker.getInstance().setPlayerState(channel2, GameState.LOGIN);
            } catch (Exception e) {
//                logger.error("Unable to send player disconnection message to channel2", e);
            }

        } else {
            try {
                if (channel1.isOpen())
                    channel1.write(MessageFactory.createGameOverMessage(2));
                GameWorker.getInstance().setPlayerState(channel1, GameState.LOGIN);
            } catch (Exception e) {
//                logger.error("Unable to send player disconnection message to channel1", e);
            }
        }
        game = false;
    }