public void run() {
        try {
            server = new ServerSocket(8888);
            server.setReuseAddress(true);
            while (going) {
                Socket s = server.accept();
                net.newClient(s.getInetAddress().toString().substring(1));

                BufferedReader reader = new BufferedReader(new InputStreamReader(s.getInputStream()));

                while (!reader.ready()){}
                
                while (reader.ready()) {
                    String line = reader.readLine();
                    if (!line.equals(null)) queue.put(line);
                }
                s.close();
            }
        } catch (IOException ioe){
            ioe.printStackTrace();
        } catch (InterruptedException e){
            e.printStackTrace();
        }
    }