Videogame with a time travel or non-linear time plot.

Late in the game, you find yourself back in the Tutorial level and end up setting up the challenges that you had to solve at the beginning of the game.