The the 4 choices pop up pick one of them to get either a fail or the ending. There are 3 fails and 1 ending.
A decent amount of stuff was inspired off of the game Henry Stickmin, especially the teleporter.