This is for Duke18360. Not of interest to anyone else. Duke, let me know once you have taken a copy and I'll delete this. This uses a single polling loop, and each sprite executes just one frame's worth of activity. Let me know if you need any help with this style of coding. It'll be easier in the long run and should be fairly lag-proof.
I've tidied up the code and removed anything that could produce lag. I haven't changed the gameplay at all (unless by accident). All that complex code to preload the costumes to reduce lag really isn't needed.