private static HangmanGame initializeGame(HangmanUI ui) {
        int length = 0;
        int guesses = 0;
        ArrayList<String> words = new ArrayList<String>();
        try {
            length = Integer.parseInt(ui.askUser("What length word do you want to use??"));
            guesses = Integer.parseInt(ui.askUser("How many wrong answers allowed?"));
            
            if (length < 2) {
                ui.tellUser("Choose a longer word. Must be at least 2 letters long.");
                return initializeGame(ui);
            }
        
            if (guesses < 2) {
                ui.tellUser("Come on, at least leave yourself 2 guesses!");
                return initializeGame(ui);
            }
            words = chooseWords(length);
            
        } catch (NumberFormatException e) {
            ui.tellUser("ERROR: Invalid number");
        } catch (FileNotFoundException e) {
            ui.tellUser("Invalid file");
        }
       
        return new EasyHangmanGame(words,length,guesses);
    }