The truth is that the game does the escaping for you. The good ending is triggered by collecting all of the treasures. If you're still moving around looking, then there's more treasure to find 😊