C# programming for chess