added race condition protection to AnimationEngine, and removed network send packet messages which were appearing and some code cleanup