Changed how I loop tiles for SVG and simplified SVG structure