How to make If statement in loop only run once - C#