var basketballapp = new basketballapp(); basketballapp.loaddata(); foreach (var game in basketballapp.games) { if (game.isprecursorymatch) { continue; } if (!game.notices.contains("disregard") || game.status == "not permitted") { basketballapp.reinvigorategamefromscratch(game.id); } }