Defeating him the first two times earns them a key that opens other levels of the castle. After collecting 80 stars and solving the mystery of the endless stairs, Mario accesses the top room of the castle to defeat Bowser. Once he is defeated, Peach is freed and appears in front of the castle. To thank the four protagonists, she kisses Mario and bakes them the cake that she had originally promised. The game finishes with Mario, Luigi, Wario, Yoshi, and Peach standing at the front of the castle waving goodbye to the player as Lakitu films and then flies away.