@Override
    public void run() {
        while (true) {
            try {
                IPacket p = net.receive();
                if (!(p instanceof JoinGamePacket)) {
                    p.setSender(playername);
                    pq.addPacket(p);
                }
            } catch (IOException e) {
                pq.addPacket(new ConnectionLostPacket(playername));
                LOG.info(playername + " left, shutting Thread down.");
                break;
            } catch (ClassNotFoundException e) {
                LOG.fatal("Class file could not be found. Please check if server and client versions are equal.");
            }
        }
    }