It is viewed unfavorably for you to bump your own topic within 24 hours.
If your project is secret/complicated, at least you could make a new project isolating the issue you are having trouble with. You would be able to get help quicker and more accurate assistance.
But from what I can see, the problem is:
every 1 second - set value at (array.curx , 1) to array.curvalue - 1
This should be array.at(array.curx, 1). See if that works?