Python Break Nested Loops In Maze