added Divided Maze algo from rot.js