called an array of divs which are in a container, basic styling, and set up function so state changes on each square on click