Mystery of escaping a while loop?

It won't because you're immediately setting it to true again

At this point intensity is 99