@Override
    public void run() {
        while(true) {
            while(queueOfMessages.peekFirst() != null) {
                String s = queueOfMessages.removeFirst();
                Iterator<Client> iteratorOfClients = listOfClients.iterator();
                while(iteratorOfClients.hasNext()) {
                    Client client = iteratorOfClients.next();
                    if(client.isConnected() && client.isLogged()) {
                        client.println(s);
                    }
                }
            }
            try {
                Thread.sleep(100);
            } catch(InterruptedException e) {
                System.err.println("InterruptedException");
            }
        }
    }