Try: Set value at (objectsLeft-1,0) to 1
Arrays have zero based Index. If you set the size of an Array to 3 you have Index 0,1,2.
And I wouldn't use set size in a loop, I would use push in an empty Array (width=0, Height=1, Depth=1)
it worked perfectly, thanks!