why is my code weird?? - C#