Fixed border references between tiles.

Tile border ref’s should have been shared between adj tiles, but were
not. Solution: horrible block of code that gets the job done.