How the Dodgers punched their ticket to October