Movement algorithm | ScratchStats