Determines the value of a hand of cards