renamed to DeckFactory and moved to controller