Complex sentence: The game ends when the Sprixies thank Mario and his friends for saving them, and wave good-bye as they fly through the main pipe back to the Mushroom Kingdom.
Split into simpler sentences: The game ends with the Sprixies thanking Mario and his friends for saving them. They wave their good-byes as Mario and his friends travel through the main pipe back to the Mushroom Kingdom.