private void processPhaseMessage(final String message) {
        EventMessage response = new EventMessage();
        response.setPhase(message);
        switch (message) {
        case "none":
            game.cleanup(player);
            String nextPlayer = game.getNextPlayerName();
            response.setCommand("update");
            game.sendMessageToAll(response, true);
            EventWebSocket socket = game.getSocketForUser(nextPlayer);
            socket.sendMessage(new EventMessage("", Phase.ACTION.getDesc(), ""));
            response.setCommand("");
            break;
        case "action":
            player.setPhase(Phase.ACTION);
            response.setLogInfo("player " + playerName + " started Action phase");
            game.sendMessageToAll(response, true);
            break;
        case "buy":
            player.setPhase(Phase.BUY);
            response.setLogInfo("player " + playerName + " finished Action phase");
            game.sendMessageToAll(response, true);
            break;
        case "cleanup":
            player.setPhase(Phase.CLEANUP);
            response.setLogInfo("player " + playerName + " finished Buy phase");
            game.sendMessageToAll(response, true);
            break;
        default:
            response.setPhase("none");
            sendMessage(response);
        }
    }