added main.js & tiles.forEach
added function resize tiles