@Override
    public StatusType getInput(Object object) throws MenuException{
   
        this.game = (Game) object;

        StatusType gameStatus = StatusType.PLAYING;
        do {
     
            this.display();
            
            // get commaned entered
            String command = this.getCommand();
            switch (command) {
                case "T":
                    this.gameMenuControl.takeTurn();
                    break;
                case "D":
                    gameMenuControl.displayBoard();
                    break;
                case "N":
                    gameMenuControl.startNewGame();
                    break;
                case "R":
                    try{
                    gameMenuControl.displayTopScores();
                    }catch(MenuException ex){
                            ErrorType.displayErrorMsg(ex.getMessage());
                            }
                    break;
                case "P":
                    gameMenuControl.displayPreferencesMenu();
                    break;
                case "H":
                    gameMenuControl.displayHelpMenu();
                    break;
                case "Q":
                    gameStatus = StatusType.QUIT;
                    break;
                default: 
                    throw new MenuException (ErrorType.ERROR105.getMessage() );
            }
        } while (!gameStatus.equals(StatusType.QUIT));
        
      return gameStatus;
    }