now correctly getting the lines that make the grid