Maze traversal. I've usually done these with a lazy flood fill (as those are simpler to write) but I actually did a bfs this time.