Added game loop got rid of window global, stopped relying on glfw loop.