My version of a DFS maze-solving algorithm