So basically the x and y position gets added into the list so the shape knows where to go and it creates the shape and deletes the other lines that the pen saved and keeps the new lines saved idk if you will understand that but all you gotta do is move your mouse around on the screen