match in both directions

No matches in X and Y directions
Corrected the little bug which didn't match the tiles when surrounded by
moving but empty tiles