filterByRarity

fun filterByRarity(cards: Array<Card>, rarity: String): Array<Card>

Filter cards by rarity (common, uncommon, rare, mythic)