public void run() {
            while (incomingthread.isGoing()) {
                String update;
                try {
                    update = input.take();
                    if (update.equals("ready")) {
                        lobby.start();
                    } else if (update.charAt(0) == 'A') {
                        newClient(update);
                    }else {
                        map.update(update);
                    }
                } catch (InterruptedException e){
                    e.printStackTrace();
                }
            }
        }