Magic the Gathering Rules Engine