Draw line segments in response to clicks