private void run() {
        
        Object[] options = {"Host a game",
            "Join an existing game"};

        final int n = JOptionPane.showOptionDialog(this,
                "Would you like some green eggs to go "
                + "with that ham?",
                "A Silly Question",
                JOptionPane.YES_NO_CANCEL_OPTION,
                JOptionPane.QUESTION_MESSAGE,
                null,
                options,
                options[1]);

        if (n == 0) {
            startServer();
        } else if (n == 1) {
            startClient();
        }
        
        this.setVisible(false);
        this.dispose();
    }