Kolmogorov's condition for the square potential spherical pendulum