Major Optimizations!

Optimized code so that the device's framerate is at a constanst 60FPS.