AI and game logic for hearthstone game.