Using Web Components to create a card playing algorithm When you can't beat an AI, sometimes you have to build your own