More work on tile rules.