A program to find the shortest solution to a maze using breadth-first search