Damn, I am such a math nerd. I finally got it to work 90% of the time. there is a weird bug that I think I fixed causing all the variables to set at a number higher than my total number of items I am checking. I think my last item finally makes it so if my last slot is greater then the CSV objects total number of rows then it will force the whole list to the start.
Finally I got the WhileLoop to work like I needed. Now just need to make sure this is optimized by using instance variables.
Now I will sleep.