A generic C++ game loop, which is used to manage the heart-beat of your game.