public static Packet getPacket(ChannelBuffer buffer) {
        Packet pckt;
        int id = buffer.readInt();
        switch ( id ) {
            case 1:
                pckt = new PacketGetMove();
            break;    
            case 3:
                pckt = new PacketResult();
            break;
            default: return null;
        }
        pckt.deserialize(buffer);
        return pckt;
    }