How does the sentence end?

When the show was over, he stayed up to watch another episode rather than go to bed because the
episode was entertaining.