adding simple game loop