this is my while loop the big one then we have a for loop with a nested if the problem is that the code inside the if keeps on looping and crashes the program.