Replaced scipy plotting by pygame visualization to achieve cross-platform compatibility in the particle animation.