Refactor setAllColors