Drawing a line on user input