Changed the A* algorithm a little bit

Now it can find a path between the two hqs in 7-12 rounds, depending
on the size of the map.  Not sure whether it returns a good path or
not... and we may want to change the algorithm so that it operates on
chunks of tiles rather than tiles (down-sampling).