public String excecuteCommands(Object object) {
        String command = null;
        Scanner inFile = Connect4.getInputFile(); 
        
        do {     
            try {
            this.display(); //displays the menu
            
            //get input
            command = inFile.nextLine();
            command = command.trim().toUpperCase();
            
            switch(command) {
                case "M":
                    this.gameMenuControl.displayGetMarker();
                    break;
                case "N":
                    this.gameMenuControl.displayPlayerName();
                    break;
                case "H":
                    this.gameMenuControl.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");
    }