Added SDL_RENDERER_PRESENTVSYNC to renderer in main.cpp.