private static int nfaMenu(EpsilonNFA nfa){
		String menu = 	nfa.toString()+"\n\n"+
				"1. Compute the Epsilon Closure\n"+
				"2. Enter words\n"+
				"3. Print out Alphabet\n"+
				"4. Convert to DFA\n"+
				"5. Print GRAIL format transitions\n"+
				"6. Back\n"+alwaysMenu();
		Scanner nfaScan = new Scanner(System.in);
		int input;
		String answer;
		do{
			System.out.println(menu);
			input = nfaScan.nextInt();
			switch(input){
			case 1:
				System.out.println(nfa.eCloseAutomaton());
					break;
			case 2:
				System.out.print("Please enter a word: ");
				nfaScan.nextLine();
				String word = nfaScan.nextLine();
				System.out.println();
				System.out.println(nfa.containsWord(word));
				break;
			case 3:
				System.out.println(nfa.alphabet);
				break;
			case 4:
				DFA dfa = nfa.convertToDFA();
				if(dfaMenu(dfa)==0)
					input = 0;
				break;
			case 5:
				System.out.println(nfa.grailFormat());
				break;
			default:
				break;
			}
		}while(input!=0 && input != 6);
		//can't close? makes sc in main throw an error
		//nfaScan.close();
		return input;
	}