A randomly generated maze with a solution in Ruby