It is easy to color all of 8 with the same color, because the php code does that for you. But how can you color them with different, given the code? How do you have to change to code, so that it would have different colors.
To see what i want, see the picture below.

Any input will be appreciated!
Thank you guys!