Check Win Conditions
public void CheckWinConditions()
In this method, the game match’s win conditions are checked, and if one of the players should win or be defeated now, this method calls the needed methods to perform the necessary actions.
You can customize this method to change the game’s win conditions, if your game represents another game mode.