The original ending to Piggy Book 2 was very different from the final ending. In the original ending, Piggy and his friends went to the Moon, where they found a magical beanstalk. They climbed the beanstalk and found a giant's house. They stole some of the giant's treasure, and then went back home.
The final ending is much more complex. First, Piggy and his friends find a secret door in the wall of their house. They go through the door and find themselves in a strange place called the Land of Lost Things. They meet a creature called the Beast, who tells them that they must find a magical book in order to get home. They eventually find the book, but it is guarded by a giant dragon. They manage to defeat the dragon and get the book. The book takes them back home, and they live happily ever after.