From the Super Mario Wiki, the Mario encyclopedia
The objective is to get the rocket to the right exit (where the arrow is pointing) by rotating the path. By doing so, the game is won. However, if the rocket takes the wrong exit or hits a wall, the player will lose.
Names in other languages