In order to make the environment dynamic, I have a method that randomly assigns a number to the elements of the array. All elements with the number are then given a darker shade of green.
I can vary the frequency of the shaded blocks by changing the random value in the code.