minor optimization

The for-loops used for generating checkerboards,
and the colour wheel, have been switched.

This is so that the reads/writes are done in a linear order.