public static void main(String[] args) {
        boolean useGraphical = true;
        
        for (int i = 0; i < args.length; i++) {
            String arg = args[i].trim();
            if (arg.contains("text")) {
                useGraphical = false;
                break;
            }
        }
        
        UI ui;
        if (useGraphical) {
            ui = new GUIInvoker();
        } else {
            ui = new TextUI();
        }
        
        ui.start();
    }