A* Maze Solver in Ruby