variable name typo (mageDecks -> mages)