window-closing to develop

Using GLFW Close flag insted of variable to determine whether the window should close