And now that we've assigned all the goals to the different sets Gt, we can go backwards through the graph, starting from layer M to 1, and search for actions that achieve these goals in the corresponding layers. 