example for a game loop, started