private void processPlayResult(String result) {

        if (result.equals("next")) {
            if (player.underAttack) {
                EventMessage selfResponse = new EventMessage();
                EventMessage otherResponse = new EventMessage();
                System.out.println(player.playerAction() + " " + player.discardCards + " " + player.discardAllowrance);
                if (player.playerAction() == PlayerAction.DISCARD && player.discardCards < player.discardAllowrance) {
                    selfResponse.setLogInfo("Need to discard " + (player.discardAllowrance - player.discardCards) + " more");
                    sendMessage(selfResponse);
                } else if (player.playerAction() == PlayerAction.TRASH && player.trashCards < player.trashAllowrance) {
                    selfResponse.setLogInfo("Need to trash " + (player.trashAllowrance - player.trashCards) + " more");
                    sendMessage(selfResponse);
                } else {
                    player.setPlayerAction(PlayerAction.NONE);
                    player.discardAllowrance = 0;
                    player.discardCards = 0;
                    player.trashAllowrance = 0;
                    player.trashCards = 0;
                    selfResponse.setCommand("clear");
                    String logInfo = "player " + player.name() + " finished responding to attack and went back to sleep.";
                    selfResponse.setLogInfo(logInfo);
                    otherResponse.setType("log");
                    otherResponse.setLogInfo(logInfo);
                    sendMessage(selfResponse);
                    game.sendMessageToAll(otherResponse, false);
                    moveToNextAction();
                }
            } else {
                moveToNextAction();
            }
        }

        if (result.equals("anti")) {
            EventMessage selfResponse = new EventMessage();
            EventMessage otherResponse = new EventMessage();

            if (player.hasAntiAttack()) {
                otherResponse.setLogInfo("player " + player.name() + " revealed antiattack card");
                otherResponse.setType("log");
                game.sendMessageToAll(otherResponse, true);
                selfResponse.setPlayerAction("");
                selfResponse.setCommand("clear");
                sendMessage(selfResponse);
                moveToNextAction();
            } else {
                selfResponse.setPlayResult("You Liar! You don't have antiattack!");
                selfResponse.setCommand("attack");
                selfResponse.setPhase(Phase.NONE.getDesc());
                sendMessage(selfResponse);
            }
        }
    }