public static void main(String[] args) {
        User u;
        if (args.length > 0) {
            u  = new User(args[0]);
        }
        else {
            u = new User("localhost");
        }
        Console con = System.console();
        String user_name = con.readLine("Insert your username for this session: ");
        String c="";
        menu ();
        while (c.compareTo("exit") != 0) {
            c = con.readLine(user_name+"@tictactoe $ ").trim();
            if (c.compareTo("publish_match") == 0) {
                publish_match(u,user_name);
            }
            else if (c.compareTo("top10") == 0) {
                show_top10(u);
            }
            else if (c.compareTo("show_match") == 0) {
                show_match(u);
            }
            else if (c.compareTo("answer_match") == 0) {
                answer_match(u, user_name);
            }
            else if (c.compareTo("clear") == 0) {
                System.out.print("\033[H\033[2J");
                System.out.flush();
            }
            else if (c.compareTo("help") == 0) {
                menu();
            }
            else if (c.compareTo("exit") != 0) {
                System.out.println("tictactoe: "+ c + ": command not found");
            }
        }
        u.stop();
    }