Simplifying color logic with a for/do loop and an array.