So when running the code, it works as intended except for the fact that when looped a second time, the if statement doesn\'t work. May I ask for some help please.