Added game loop.