In the Jumping Jupiter model, an ice giant first encounters Saturn. The encounter perturbs the orbit of the ice giant inward toward Jupiter, and that causes Saturn to get pushed outward. When the ice giant reaches Jupiter, it gets scattered outward again, while Jupiter moves inward. In most cases, the ice giant is ejected out of the solar system.