Moved glfwPollEvents() to the GLFW event loop in main.cpp