The engine API has functions for traversing the whole history, specifically of interest is Engine.goTo() and Engine.go(). If you're only trying to go back one passage, though, you should generally use either the previous() function or the macros <<previous>> or <<back>>. Note that these macros are similar but not exactly the same. Specifically, <<previous>> goes to the last passage but pushes the history forward, meaning it doesn't undo changes to variables and such, while <<back>> pushes the entire state history back.