Fixed bug due to wrong merge.
Fixed typo
Golfed lines 251,252
Renamed make_equal_line to make_lines_equal
Removed unneccessary function arguments