What is the time complexity to find a path in maze. A* can help you with that.