update to getCardsWithRanks

getCardsWithRanks now has map, rather than a switch to hold the ranks by
class. This is to make the source easier to generate in R.