fixed color iteration in addArray