public void writeMessage (String message){
        try {
            out = new PrintWriter(client.getOutputStream(), true);
            out.println(message);
            out.flush();
            System.out.println("OUT: "+message);
        } catch (IOException ex) {
            Logger.getLogger(ClientWorker.class.getName()).log(Level.SEVERE, null, ex);
        }
  }