Added lines as functions, started playing with PIL for visualization, and added a non-working 'find-intersection' method