Small performance change to tileMatchesAvailable

It's a small improvement, but there's no reason to check every tile on
all 4 sides.  This will check each pair of tiles twice.  Only 2 sides
are needed.