Open the first gate.
Open the second gate.
Open the third gate.
Open the fourth gate.
Open the fifth gate.
Open the sixth gate.
Finish the game, and open the main menu.