pub fn terminated(state: &State) -> bool
Whether state ends the episode: the cart or the pole is out of bounds.
state