Silver coerces Jim into using the map, which can open a portal to any location in the universe, which leads Jim to realize this was how Flint conducted his raids. The portal to Treasure Planet is opened, and the group discover the planet is a giant space station which Flint commandeered in order to store his loot. As the pirates prepare to collect the loot, Jim finds Flint's skeleton, holding the missing piece of B.E.N.'s cognitive computer. After reinserting it, B.E.N. immediately remembers that Flint rigged the planet to explode upon the treasure's discovery. As the planet falls apart, Silver, in a desperate attempt not to leave emptyhanded, tries to escape on a boat loaded with treasure, but sacrifices the treasure to save Jim. The survivors escape to the ship, but it is damaged and becomes unable to leave the planet in time. Jim rigs a rocket-powered sailboard, and rides ahead of the ship to the portal. At the last moment, Jim sets the portal to the Montressor Spaceport, and he and the crew clear the destruction.