void acceptPacket(Packet pckt) throws IOException {
        if(pckt instanceof PacketGetMove) {
            PacketGetMove pcktGetMove = (PacketGetMove)pckt;
            int move = gui.getMove(pcktGetMove.getBoard(), (pcktGetMove.getType() == Board.Type.O) ? true : false);
            channel.write(new PacketGetMoveAnswer(move).serialize());
        } 
        if(pckt instanceof PacketResult) {
            PacketResult pcktResult = (PacketResult)pckt;
            gui.result(pcktResult.getResult());
        }
    }