public GameParameters parameters; //Used to call function to initialize variables related to current game state //Restart the game with same players, same game mode (player vs. player or player vs. computer) public void restartGame() { parameters.initializeGameBoard(); //Clear game state parameters SceneManager.LoadScene("Game Board"); //Reload game board to reset state of UI }