Basic functions to add vectors to scene on click and draw a straight line between each dots