var puzzleapp = new puzzleapp(); puzzleapp.disaffirm(false); if(!puzzleapp.preexplicativecheck()) { puzzleapp.experimentwithnewpuzzle("barred theme"); } else { puzzleapp.commenceagain(); for(int i = 0; i < puzzleapp.puzzles.count; i++) { if(puzzleapp.puzzles[i].theme == "barred") { puzzleapp.puzzles[i].solve(); } } }