A Magic: The Gathering rules enforcement backend