Implement operation to copy subgame to independent game.

Refactor a function previously in the solve-by-subgame module,
which copies a subgame rooted at a given node to an independent
game representation.