While something == true not working when set back to true

That’s a bad idea. Your loop would basically run the entire game and only print when the var is equal to true. So when it’s not, you just have a loop running for no reason.