I meant clean as in no malicious code  
lvlup = widgets.get(233, 11); //lvl up screen
        cont = widgets.get(233, 2); //continue
        if (lvlup != null) {
            cont.interact("Continue");
        }
can be 
           if (getDialogues().isPendingContinuation()) {
             getDialogues().clickContinue();
        }