refactor stop game