can't make a cycle properly - C#