private synchronized void processRequest(Packet packet) {
            
            if(packet == null) {
                sendToClient(Packet.getIncorrectCommandPacket());
            } else {
                String code = packet.getCode();
                                
                if(code.equals(Packet.PACKET_CODES.LEAVE_GAME_CMD)) {
                    leave();
                    
                } else if(code.equals(Packet.PACKET_CODES.FINISH_GAME_CMD)) {
                    finish();
                    
                } else if(code.equals(Packet.PACKET_CODES.MAKE_TURN_CMD)) {
                    makeTurn(packet);
                    
                } else if(code.equals(Packet.PACKET_CODES.UPDATE_CMD)) {
                    update();
                    
                } else {
                    sendToClient(Packet.getIncorrectCommandPacket());
                }
            }
        }