Added main loop and OpenGL rendering