add breakLoop for click after game finishes