Fixed a stack overflow bug. Optimzed code in multiple places to achieve
60 FPS @ 800 units rendered on the screen at once. SIMULATION FRAMEWORK
IS STABLE