changes card color to an array