added structure for tiles and grid