private bool CheckIfEndGame() { int playerOneCoinsCounter = 0; int playerTwoCoinsCounter = 0; bool isEndGame = false; GameInformation.eWinner winnerID; if (GameInformation.IsEndOfGame()) { isEndGame = true; winnerID = GameInformation.CheckWhoWon(ref playerOneCoinsCounter, ref playerTwoCoinsCounter); if (winnerID == GameInformation.eWinner.Player1) { GameInformation.PlayerOneScore++; showEndGameMessage(k_PlayerOneColor, playerOneCoinsCounter, playerTwoCoinsCounter); } else if (winnerID == GameInformation.eWinner.Player2) { GameInformation.PlayerTwoScore++; showEndGameMessage(k_PlayerTwoColor, playerOneCoinsCounter, playerTwoCoinsCounter); } else { showEndGameMessage("Tie", playerOneCoinsCounter, playerTwoCoinsCounter); } } return(isEndGame); }