bestHand function should find the best hand given a list of cards