Overshooting
When a line overshoots the dots to the left or right, it may bounce back and collect the dots while returning. However there is no such "wall" on the top or bottom. Your line will continue as long as possible (until touching a black dot or moves off the top or bottom).