adjusted colours
fixed bug by making centroid algorithm actually find the centroid