Working on the massive while loop

(it's now a for loop)