initial frame and game loop