Initial setup of rendering loop
Moved rendering to Renderer class.