Node implementation of MTG's game ruleset