Im trying to call a variable declared at the start of the program in a for loop, but every time do it the loop runs forever, when i replace the varaible with a number it wor