private int defense(State s){
    	int def = 10;
    	int natk = 0;
    	State ns;
    	MyList moves = s.findMoves(); 
    	Iterator it = moves.iterator();
    	Move m;// = (Move) it.next();
		//ns = s.tryMove((Move) m);
		//natk = attack(ns, s);
		
    	while (it.hasNext()){    	
    		m = (Move) it.next();
    		ns = s.tryMove((Move) m);
    		natk = attack(ns, s);
    		//System.out.println("natk = "+natk);
    		if(natk < def)
    			def = natk;
    	}
    		
    	return def;
    }