Solving the first environment using AC. Pendulum swing-up. Both solver and visualizer