Bug fix: Algorithm referred to world's end cell.

Bug fix: Algorithm referred to world's end cell instead of local end
cell in the heuristic function call.  This made the search behave more
like breadth first search instead of depth first since the highest cost
was at the goal cell instead of the cheapest.