public static void SwitchTurn(Grid Grid1) { bool gameEnd = GameEnd(Grid1); if (turn == "Black") { turn = "White"; enemyColor = "Black"; Game.ResetPossibleStatus(Grid1); ShowMoves(Grid1); if (Square.PossibleCount == 0 && gameEnd == false) //skips turn { SwitchTurn(Grid1); } } else { turn = "Black"; enemyColor = "White"; Game.ResetPossibleStatus(Grid1); ShowMoves(Grid1); if (Square.PossibleCount == 0 && gameEnd == false) //skips turn { SwitchTurn(Grid1); } } }