You can't put for loops within the condition of a while loop in that manner.