public static void maxCopies(Deck d){
	if(d.repeated){
	    System.out.println("maxCopies doesn't deal with repeated decks yet");
	}else{
	    Map<String, Integer> copies = new TreeMap<String, Integer>();
	    for(int i=0; i<d.cards.size(); i++){
		String s = d.cards.get(i);
		if(! CardsInfo.has(s, "Basic")){
		    if(copies.containsKey(s)){
			int n = copies.get(s);
			if(n>=Zegana.maxCopies){
			    d.cards.remove(i);
			    i--;
			}else{
			    copies.put(s, n+1);
			}
		    }else{
			copies.put(s, 1);
		    }
		}
	    }
	}
    }