fixed def total(hand)

card.rank() not card.rank