Set start and endpoints and draw a line between them