copy of maze-solver-ruby-005