So you can have a main loop like this
The increment function is
Totally untested, but something like this will work. It’s more of a piece of concept art at the moment.
This loop basically increments the array of indexes. If the index goes off the end of an array, set it back to zero. If we just set the index of the last array back to zero, we’re done…

