wall wraparound and smooth movement code | ScratchStats