Added update and draw calls to main loop