@Override
        public void run() {
            try {
                if ("I'm here !".equals(in_socket.readLine())) {
                    boolean test_server = false;
                    int randNumber = (int) (Math.random() * 5);
                    System.out.println("I've chosen number " + randNumber);
                    out_socket.println("number chosen");
                    do {
                        int answerClient = Integer.parseInt(in_socket.readLine());
                        if (answerClient != randNumber) {
                            out_socket.println("wrong");
                            if (0 <= answerClient && answerClient < randNumber) {
                                out_socket.println("higher");
                            } else if (5 >= answerClient && answerClient > randNumber){
                                out_socket.println("lower");
                            }
                        } else {
                            out_socket.println("right");
                            test_server = true;
                        }
                    } while (!test_server);
                }
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                try {
                    System.out.println("Closing connection.");
                    socket.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }