function loadTiles