fix for #551 : class when capturing a deck from the game

probably a confusion between name() method (Java enum) and
name property (HeroClass specific field) when called from scala.