Game Loop and libraries