how to make a stop detector | ScratchStats