I increased the range of values on the s variable to allow a more accurate approximation of pi (at the expense of a significantly lower framerate).