Changed for-in-loops to normal for-loops for major FPS speedup!