Maze Parser and Solver using Ruby