Finished tile function and changed main (test) method in heatmap.