simplified the tiles example