created an object to append divs with colored backgrounds from an array to a parent div and then change the fillStyle when clicked.