Chess engine in C#