Performance Optimization to tileMatchesAvailable

Minor change, but there's no need to test every tile on all 4 sides.
You are testing each pair twice.  Only two directions are needed.