In this recipe, we will extend the ScoreBoard class to be able to update player scores and to detect when a player has won the game. Once one of the players has won the game, the board will announce which player has won the game by playing an audio clip with the announcement.
This recipe is the last piece to complete the logic in the ScoreBoard class. Once it's completed, we can combine it into the main event loop and complete the game in the next recipe.