update colors, replace annoying iterator loops w/ c++11 foreach