public void getInput(){
        String command;
        Scanner inFile=new Scanner(System.in);
        do {
            this.display();//display the menu 
           
            // get command entered
            command= inFile.nextLine();
            command=command.trim().toUpperCase();
         
            switch (command) {
                case "N":
                    this.mainMenuControl.createPlayerList();
                    break;
                case "1":
                    this.mainMenuControl.startGame(1);
                    break;
                case "2":
                    this.mainMenuControl.startGame(2);
                    break;
                case "H":
                    this.mainMenuControl.displayHelpMenu();
                    break;
                case "S":
                    this.mainMenuControl.displayStatistics();
                    break;
                case "X":
                    this.mainMenuControl.quitGame();
                    break;
                 
                default: 
                    new MemoryGameError().displayError("Invalid command. Please enter a valid command.");
                continue;                    
            }
        } while (!command.equals("X"));

        return;
    }