fisrts version of the function, whcih stops the scratch when the most
80% is scaartched