public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		out.println("Please enter the maze you would like to run:");
		String input = "src/MazeReadIn/trickySearch";//console().readLine();
		String output = input+"Solution";
		Maze myMaze = ReadMaze.parseMaze(input); // className.methodName
		ArrayList<String> result = new ArrayList<String>();
		boolean firstLoop = true;
		ArrayList<Integer> counter = new ArrayList<Integer>();
		counter.add(new Integer(0));
		counter.add(new Integer(0));
		ArrayList<Pair<Integer, Integer>> reachedGoals = new ArrayList<Pair<Integer, Integer>>();
		
		while(myMaze.goals.size()>0){
			ArrayList<String> partialResult = BFS(myMaze, counter, reachedGoals);
			if(firstLoop){
				result = ArrayListHelper.add(partialResult, result);
				firstLoop = false;
			}
			else
			{
				result = ArrayListHelper.add(partialResult.subList(0, partialResult.size()-1), result);
			}
		}
		out.println("SOLUTION:");		
		for(int i= result.size() - 1; i >= 0 ; i--){			
			out.println(result.get(i));
		}
		out.println("PATH LEN:" + (result.size() - 1));
		out.println("MAX TREE DEPTH:"+ (result.size() - 1));
		out.println("VISITED:"+ counter.get(0));
		out.println("FRONTIER COUNT:"+ counter.get(1));

		//WriteMaze.writeSolution(input, result, output);
		WriteMaze.writeSolution(input, result, output, reachedGoals);
	}