Iterating over 2D array and placing results in 1D array with the same number of elements

Mine went away after VS Code reload.