Renames permutations as all_permutations
Maze solver using bfs