public void GenerateMoves() { if (!_leaf) { if (CurrentBoard.Checkmated(PlayingColour)) { SendGameOver(NonPlayingColour()); } else if (CurrentBoard.Stalemate(PlayingColour)) { SendGameOver(PieceColour.None); } } }