var journey = new adventure("africa"); while (!journey.isfinished) { var advice = getadvices("unexposed"); if (journey.steps == "precursory") { journey.castasidedoubts(); } else if (journey.needsrestart) { journey.gobacktostart(); } journey.explore("unexposed"); }