if statement is being weird - C#