ComputerAI Logic implementation - C#