Removed console logs.
Heuristic looks at pairs of neighboring tiles.