Card game automation framework