public String[] getInput() {
        
        Scanner inFile = new Scanner(System.in);
        
        System.out.println("\n\t________________________________________________________________________");
        System.out.println("\n\t You must enter names for two players before starting a two player game.");
        System.out.println("\n\t________________________________________________________________________");
        
        int playerIndex = 0;
        boolean listComplete = false;
        while (playerIndex < 2 && !listComplete) {
            System.out.println("\n\t Please Enter a name for this player, or \'Q\' to quit.");
            String playerName;
            playerName = inFile.nextLine();
            playerName = playerName.trim();
            
            if (playerName.length() < 1) {
                new MemoryGameError().display("\n\t A name must be at least "
                        + "one character long. Try again or \'Q\' to quit.");
                continue;
            }
            
            if (playerName.equals("computer")) {
                new MemoryGameError().display(
                        "\n\t Memory, is a mind training game, you cannot play against a computer."
                        + " please enter another name, or \'Q\' to quit.");
                continue;
            }
            
            if (alreadyListed(playerNameList, playerName)) {
                new MemoryGameError().display(
                        "\n\t That name has already been entered. Please enter another"
                        + " name, or \'Q\' to quit.");
                continue;
            }
            
            if (playerName.toUpperCase().equals("Q")) { // quit?
                listComplete = true;
                break;
            }
            
            this.playerNameList[playerIndex] = playerName;
            playerIndex++;

        }
        
                String[] newNameList = new String[playerIndex];
        for (int i = 0; i < playerIndex; i++) {
            newNameList[i] = this.playerNameList[i];          
        }
        

        newNameList = this.sortList(newNameList);
        this.displayNameList(newNameList); // display the list of names
        
        return newNameList;
    }