/// <summary> /// Initializes all the fields to their initial values for a new game. /// </summary> public void newGame() { _previousRow = 0; _previousColumn = 0; _board = new PokemonBoard(); PreviousGrid = _board.generateGrid(); CurrentGrid = PreviousGrid; PreviousScore = 0; CurrentScore = 0; _board.PointsAdded += OnPointsAdded; _board.BoardChanged += OnBoardChanged; _board.StartingPlay += OnStartingPlay; _board.EndingPlay += OnEndingPlay; OnScoreUpdated(); OnBoardChanged(this, new MakingPlayEventArgs(CurrentGrid)); }