Attempted to access index 50 from array with length 50!

I understand that, but since it’s still trying to access the 50 item (49) it should be able to?
image

The for loop also starts at index 0 and is trying to access the same index from the WallTiles array (i assume its trying to access index 0)