public void getInput() {
   
        String command;
        Scanner inFile = new Scanner(System.in);

        do {    
            this.display(); // display the menu

            // get commaned entered
            command = inFile.nextLine();
            command = command.trim().toUpperCase();
            
            switch (command) {
                case "T":
                    this.game.choosePairOfCards();
                    break;
                case "D":
                    this.game.printCells();
                    break;
                case "N":
                    this.mainMenuControl.startGame(1);
                    break;
                case "H":
                    this.mainMenuControl.displayHelpMenu();
                    break;
                case "Q":                   
                    break;
                default: 
                    new MemoryGameError().displayError("Invalid command. Please enter a valid command.");
                    continue;                              
            }
        } while (!command.equals("Q"));

        return;
    }