For all nodes in the path from the root node to the selected node, the state value and number of visits are updated using the maximum value of the rewards calculated in the Simulation step. The following transformations are applied to keep the reward value in the range of -1 to 1.