calculation of the average colors

Needs work, but this is what I changed, minus the hacks for an extra light and analyzing the two screen halves.