using tiles.json in main.js