'spinCount' was not declared in this scope. So, no problem I just transport the declaration too:
No, even though that variable had the same name as before it was not the same variable and so did not know what the previous values of the variable of the same name had. It is confusing to have different variables with the same name but it can be done, the language allows it.
The spinCounter array is ONLY valid in the spin function. That means it can only be accessed inside the spin function and anywhere else the compiler dose not know about it. It is sort of protected from being changed. We say the "scope" of that variable is only within that function. This is how we want it to be.
However, we want to know what values the spin function produced when we are in the loop function in order to flash them in the loop function after we have had three spins. These three numbers are stored in the wheel array, so that is what we must use to flash the result of three spins. So you need to do what I said at the end of my last post. This is code for the loop function.