public void serverMessageReceived(ServerMessage message) {
        if (message.getServerCode() == 1) {
            out.println("SERVER Client Disconnected");
        } else if(message.getServerCode()==2) {
            out.println("SERVER Client list requested");
        } else {
            out.println("SERVER Unknown message: " + message.getServerCode() + " " + message.getMessage() + " " + message.getData());
        }
        out.flush();
    }