I have a loop, which writes the values of an array to a .csv file. It works, but it writes all the data to the same lines each loop. How can I make it to where it moves do