An Amusement Machine using LEDs

OK Mike. Brilliant ---

Thinking out loud here.

I need to get a handle on passing, calling and indexing.
I try to follow the values. We have counter values of 1,2,3 which correspond to wheels and rows in the matrix, but now also places in a storage array for the spinCount values.
We have spinCount values which are columns in the matrix from 1 to 25 (but indexed 0 to 24)

so the variable spinCount is "passed" a value from the call to the spin function back up between the nested for loops, where wheel[j]=spin(j)?

Or does the spin function call the value? Are passing and calling two sides of the same coin?

spin function is only an integer between 1 and 3, that integer indexes the matrix row when we hit the symbols[] call. And the matrix column value is incremented by 1 as it proceeds through the flash function.

It sort of makes sense.
But now the spin function has wheels within wheels. Meaning that we are now indexing a place in the array where the spinCount values are stored. And that place is a variable array named spinCount [].

So does that mean the values are passed from the spin stop into this array - or I guess they just keep ticking over in there and they stop when the wheel stops.

So now we need to work out how to flash those resulting values of the spinCount array after the third spin...
Can we call them up...