public static Dice valueOf(int value) {
		if (value < MIN_VALUE || value > MAX_VALUE) {
			throw new IllegalArgumentException("invalid number of pips for dice given");
		}
		Dice newDice = new Dice();
		newDice.value = value;
		return newDice;
	}