Rewrite getCardsByName using Map.findWithDefault
Import Map and IntMap constructors