Move ai deck generation logic to ai.deck.js