Solves computer generated mazes with java BFS (and some perl work)