public void getInput() {       
              
        String userCommand;
        Scanner inFile = new Scanner(System.in);
        
        do {
            
            this.display(); // display the menu
            
            // get commaned entered
            userCommand = inFile.nextLine();
            userCommand = userCommand.trim().toUpperCase();
            
            switch (userCommand) {
                case "O":
                    this.helpMenuControl.displayGameObjective();
                    break;
                case "1":
                    this.helpMenuControl.displayOnePlayerHelp();
                    break;
                case "2":
                    this.helpMenuControl.displayTwoPlayerHelp();
                    break;                   
                case "Q": 
                    break;
                default: 
                    new MemoryGameError().displayError("Invalid command. Please enter a valid command.");
                    continue;
            }
        } while (!userCommand.equals("Q"));  
        
         return;
    }