Vertical lines now loop and only draw as many lines that are necessary