Setting up proper timing and render loops, corrected bug in level render