Hello,
Processing 4 on W10 PC highlighted where the error is in blue.
I added a println() to illustrate the problem:
println()
184 is clearly out of bounds of the 8 element array.
:)