private int checkCard(String name) {
        int t = names.indexOf(name);
        if (t == -1) {
            return 0;
        }
        if (amounts.get(t) < 0) {
            return 1;
        }
        if (amounts.get(t) == 0) {
            return 2;
        }
        if (!Card.isBasicLand(name) && amounts.get(t) > 4) {
            return 3;
        }
        return 4;
    }