public void sendCommandToClients(Command command, Socket skip) {
        for (Socket client: clients) {
            if (!skip.equals(client)) {
                try {
                    if (!client.isClosed()) {
                        System.out.println("sending to client");
                        PrintWriter out = new PrintWriter(client.getOutputStream(), true);
                        out.println(command.toString());
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }