@Override
	public void run() {

		while (true) {
			Input msg = m.get();
			DataOutputStream out;
			int[] msgarr = msg.getMessage();
			Iterator<Socket> it = allConnections.iterator();
			while (it.hasNext()) {
				Socket s = it.next();
				if (!s.equals(msg.getSocket())) {
					try {
						out = new DataOutputStream(s.getOutputStream());
						for (int i = 0; i < msgarr.length; i++) {
							out.write(msgarr[i]);
						}
					} catch (IOException e) {
						System.out.println("Client " + s + " is removed");
						try {
							s.close();
						} catch (IOException e1) {
						}
						it.remove();
					}
				}
			}
		}
	}