Add functions to check for bankrupt players and to get total rank value of given number of cards