Traversing through all tiles.