Find the shortest path in a maze in Ruby!