Add Game Loop from example code