// Decrement the score of the team when the - button is clicked private void DecrementScoreButton_Click(object sender, RoutedEventArgs e) { if (sender is Button btn) { string teamName = btn.Name.Split('_')[0]; int teamNumber = DefaultValues.TEAMNAMES.ToList().IndexOf(teamName); _gameBrain.DecrementScore(teamNumber); UpdateAllWindows(); AddToScreenLog("DECREMENTED score for " + teamName); } }