refactor game_tree_spec