public String executeCommands(Object object) {
        String command = null;
        Scanner inFile = Connect4.getInputFile();
        
        do {
            try {
            this.display(); // display the menu

            // get input
            command = inFile.nextLine();
            command = command.trim().toUpperCase();
            
            switch (command) {
                case "1":
                    this.mainMenuControl.startOnePlayerGame();
                    break;
                case "2":
                    this.mainMenuControl.startTwoPlayerGame();
                    break;
                case "T":
                    this.mainMenuControl.getAnswers();
                case "H":
                    this.mainMenuControl.displayHelpMenu();            
                    break;
                case "Q":
                    break;
                default: 
                    throw new MenuException(ErrorType.ERROR101.getMessage());
            }
            }
             catch (MenuException e) {
                System.out.println("\n" + e.getMessage());
            }
            } while (!command.equals("Q"));
        return ("Q");
    }