How does the sentence end?

The bird decided to eat the worm instead of the popcorn, because it thought that the
worm was good.