finished tilemap_update function (still tilemaps doesn't draw)