Updated the drawLine function
here as well (drawLine function updated!)