Drawing Lines

Fixed the line drawing so that there is no longer an index error when
trying to draw the line with your cursor.