My theory is that the AI failed to account for its actual deck count (looked like 47 but was actually 23), or failed to account for your gravity-pulled creature, or both.