I'm always scanning each axis like this when mapping, and implemented a rule very similar to this in code not long ago, haha. Just making sure tile doesn't repeat on either axis within the space of the game window. (may have been other ad hoc rules, can't remember)