Added code to generate MCTS ndoes in JSON format