Modified the process so that the color calculations and the points
calculation are done first before drawing the polygons.