Hearthstone game state:
[{'ENTITY_ID': '1', 'ZONE': 'PLAY', 'CARDTYPE': 'GAME', 'STATE': '2'}, {'ENTITY_ID': '2', 'PLAYSTATE': 'PLAYING', 'RESOURCES': '6', 'HERO_ENTITY': '64', 'MAXHANDSIZE': '10', 'PLAYER_ID': '1', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CARDTYPE': 'PLAYER'}, {'ENTITY_ID': '3', 'PLAYSTATE': 'PLAYING', 'LAST_AFFECTED_BY': '31', 'RESOURCES_USED': '4', 'RESOURCES': '6', 'HERO_ENTITY': '66', 'MAXHANDSIZE': '10', 'PLAYER_ID': '2', 'ZONE': 'PLAY', 'CONTROLLER': '2', 'CARDTYPE': 'PLAYER'}, {'TEXT': 'Your other minions have +1/+1.', 'ENTITY_ID': '4', 'HEALTH': '9', 'ATK': '9', 'COST': '7', 'LAST_AFFECTED_BY': '25', 'ZONE': 'HAND', 'CONTROLLER': '1', 'CLASS': 'NEUTRAL', 'CARDTYPE': 'MINION', 'ZONE_POSITION': '2'}, {'TEXT': 'After a friendly Undead dies, draw a card.', 'ENTITY_ID': '8', 'HEALTH': '4', 'ATK': '2', 'COST': '3', 'ZONE': 'HAND', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'MINION', 'ZONE_POSITION': '4'}, {'TEXT': 'Raise up to 5 <b>Corpses</b> as 2/2 Risen Ghouls with <b>Rush</b>.', 'ENTITY_ID': '13', 'COST': '5', 'ZONE': 'HAND', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'SPELL', 'ZONE_POSITION': '3'}, {'TEXT': 'After you cast a spell, deal 1 damage to ALL minions.', 'ENTITY_ID': '17', 'HEALTH': '2', 'ATK': '5', 'COST': '2', 'LAST_AFFECTED_BY': '24', 'DAMAGE': '1', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'NEUTRAL', 'CARDRACE': '11', 'CARDTYPE': 'MINION', 'ZONE_POSITION': '2', 'CARD_TARGET': '66'}, {'TEXT': '[x]<b>Taunt</b>, <b>Lifesteal</b>\nAt the end of your turn,\nattack the lowest Health\nenemy.', 'ENTITY_ID': '22', 'HEALTH': '8', 'ATK': '7', 'COST': '6', 'LAST_AFFECTED_BY': '25', 'ZONE': 'HAND', 'CONTROLLER': '1', 'TAUNT': '1', 'LIFESTEAL': '1', 'CLASS': 'DEATHKNIGHT', 'CARDRACE': '11', 'CARDTYPE': 'MINION', 'ZONE_POSITION': '1'}, {'TEXT': '<b>Battlecry:</b> Give a friendly Undead +2 Attack.', 'ENTITY_ID': '24', 'HEALTH': '2', 'ATK': '1', 'COST': '1', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDRACE': '11', 'CARDTYPE': 'MINION', 'BATTLECRY': '1', 'ZONE_POSITION': '1', 'CARD_TARGET': '17'}, {'ENTITY_ID': '34', 'ZONE': 'HAND', 'CONTROLLER': '2', 'ZONE_POSITION': '2'}, {'ENTITY_ID': '38', 'ZONE': 'HAND', 'CONTROLLER': '2', 'ZONE_POSITION': '1'}, {'ENTITY_ID': '39', 'ZONE': 'HAND', 'CONTROLLER': '2', 'ZONE_POSITION': '5'}, {'ENTITY_ID': '40', 'ZONE': 'HAND', 'CONTROLLER': '2', 'ZONE_POSITION': '3'}, {'TEXT': '', 'ENTITY_ID': '51', 'HEALTH': '5', 'ATK': '4', 'COST': '4', 'EXHAUSTED': '1', 'ZONE': 'PLAY', 'CONTROLLER': '2', 'CLASS': 'NEUTRAL', 'CARDTYPE': 'MINION', 'ZONE_POSITION': '1'}, {'ENTITY_ID': '62', 'ZONE': 'HAND', 'CONTROLLER': '2', 'ZONE_POSITION': '4'}, {'TEXT': '', 'ENTITY_ID': '64', 'HEALTH': '30', 'LAST_AFFECTED_BY': '42', 'DAMAGE': '3', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'HERO'}, {'TEXT': '[x]<b>Hero Power</b>\nSummon a 1/1 Ghoul\nwith <b>Charge</b>. It dies at\nend of turn.', 'ENTITY_ID': '65', 'COST': '2', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'HERO_POWER'}, {'TEXT': '', 'ENTITY_ID': '66', 'HEALTH': '30', 'LAST_AFFECTED_BY': '96', 'DAMAGE': '21', 'ZONE': 'PLAY', 'CONTROLLER': '2', 'CLASS': 'WARLOCK', 'CARDTYPE': 'HERO'}, {'TEXT': '<b>Hero Power</b>\nDraw a card and take $2_damage.', 'ENTITY_ID': '67', 'COST': '2', 'ZONE': 'PLAY', 'CONTROLLER': '2', 'CLASS': 'WARLOCK', 'CARDTYPE': 'HERO_POWER'}, {'TEXT': '+1/+1.', 'ENTITY_ID': '90', 'ATTACHED': '22', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'ENCHANTMENT'}, {'TEXT': '+1/+1.', 'ENTITY_ID': '91', 'ATTACHED': '4', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'ENCHANTMENT'}, {'TEXT': '+1/+1.', 'ENTITY_ID': '92', 'ATTACHED': '22', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'ENCHANTMENT'}, {'TEXT': '+1/+1.', 'ENTITY_ID': '93', 'ATTACHED': '4', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'ENCHANTMENT'}, {'TEXT': '+2 Attack.', 'ENTITY_ID': '95', 'ATTACHED': '17', 'ZONE': 'PLAY', 'CONTROLLER': '1', 'CLASS': 'DEATHKNIGHT', 'CARDTYPE': 'ENCHANTMENT'}]

Available options:
{'ID': 40, 'List': [{'Type': 'END_TURN', 'Main': {'ID': 0, 'Targets': None, 'PlayErrorInfo': {'PlayError': 'INVALID', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 22, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 13, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 8, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 65, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 17, 'Targets': [{'ID': 66, 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, {'ID': 51, 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, {'ID': 64, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}, {'ID': 17, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}, {'ID': 24, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 24, 'Targets': [{'ID': 66, 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, {'ID': 51, 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, {'ID': 64, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}, {'ID': 17, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}, {'ID': 24, 'PlayErrorInfo': {'PlayError': 'REQ_ENEMY_TARGET', 'PlayErrorParam': None}}], 'PlayErrorInfo': {'PlayError': 'NONE', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 4, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'REQ_ENOUGH_MANA', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 64, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'REQ_ATTACK_GREATER_THAN_0', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 66, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'REQ_YOUR_TURN', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 67, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'REQ_YOUR_TURN', 'PlayErrorParam': None}}, 'Subs': []}, {'Type': 'POWER', 'Main': {'ID': 51, 'Targets': [], 'PlayErrorInfo': {'PlayError': 'REQ_YOUR_TURN', 'PlayErrorParam': None}}, 'Subs': []}]}

Chosen action:
HasSubOption: yes
HasPosition: yes
Id: 40
Index: 5
Target: 51
SubOption: -1
Position: 0

Outcome: