I have the following code that is overwriting my array on the second pass through of the while loop.
Here is my code: