Attempt to implement the comprehensive rules of Magic: The Gathering in Python