if (client.game.getPhase() != Game.PHASE_DEPLOY_MINEFIELDS) { if (client.isMyTurn()) { endMyTurn(); } client.removeGameListener(this); client.game.board.removeBoardListener(this); client.bv.removeKeyListener(this); client.cb.getComponent().removeKeyListener(this);
if ( this.isIgnoringEvents() ) { return; }  if ( client.isMyTurn() && client.game.getPhase() != Game.PHASE_DEPLOY_MINEFIELDS ) { endMyTurn(); } if (client.game.getPhase() == Game.PHASE_DEPLOY_MINEFIELDS) { setStatusBarText("Waiting to begin Deployment phase...");
    public void gamePhaseChange(GameEvent ev) {        if (client.game.getPhase() != Game.PHASE_DEPLOY_MINEFIELDS) {            if (client.isMyTurn()) {                endMyTurn();            }            client.removeGameListener(this);            client.game.board.removeBoardListener(this);            client.bv.removeKeyListener(this);            client.cb.getComponent().removeKeyListener(this);        }    }