Added integration test for a game loop