public NetworkHandler(LobbyFrame l) {
        input = new ArrayBlockingQueue<String>(500);
        output = new ArrayBlockingQueue<String>(500);
        addresses = Collections.synchronizedSet(new HashSet<String>());
        lobby = l;
        incomingthread = new IncomingThread(input, this);
        outgoingthread = new OutgoingThread(output, this);
    }