var muppetsadventure = new adventure(); muppetsadventure.initialize(preestablishedsettings); foreach (var scene in muppetsadventure.scenes) { if (scene.iscloakanddagger) { scene.add(new inquiry("how can we uncover the mystery without ridicule?")); } else if (scene.keyword.contains("start over from the origin")) { muppetsadventure.restart(); } }