How scratch logic works | ScratchStats