Added the rollDie, isPair, and countPair functions