private boolean checkRules()
    {
        boolean cont = false;
        int i=0;
        for(Rule r: ARKS.Rules)
        {
            if(!r.done() && r.ruleFires(wm))
            {
                Conditional f = r.fireRule();
                if(!wm.contains(f))
                {
                     wm.add(f);
                }
               // wm.add(r.fireRule());
                cont=true;
            }
            
        }
        return cont;
    }