Just as MuddyMole said.
Though I'll add that it's ok to use the [X & Y] action that you're using (and it might be a good idea if you're likely to store more types of data in this array later). But the main thing is to iterate just 1 dimension in the loop, not both. To easily understand why, it'll help to think of your array as a spreadsheet (which it kind of is). By doing:
Code:
Write..... to (Loopindex("write global values") + 1, LoopLoopindex("write global values") + 1)
your current one stores the information like this, which I'm sure you'll agree would be a weird way to use a spreadsheet:

If you instead use
Code:
Write..... to (1, LoopLoopindex("write global values") + 1)
it'll store the data like this:

This will make the array take up less space and be faster. It'll also be more straightforward to add more types of data down the track - just replace the bold 1 above with a different number to save data to a different column:
Code:
Write [some other data]..... to (2, LoopLoopindex("write global values") + 1)