unlimited number of tiles, loop trough array