Line segment collision detection | ScratchStats