@Override
    public int check(DiceSet diceSet) {
        int points = 0;

        Map<Integer, Integer> vals = new HashMap<Integer, Integer>();
        for (int i = 0; i < diceSet.SIZE; ++i) {
            int key = diceSet.getValue(i);

            if (!vals.containsKey(key)) {
                vals.put(key, 1);
            }
            else {
                vals.put(key, vals.get(key) + 1);
            }
        }

        if (vals.keySet().size() == 2) {
            points = 25;
            for (Integer key: vals.keySet()) {
                if (vals.get(key) < 2) {
                    points = 0;
                }
            }
        }
        return points;
    }