Finds intersection points!

TO DO: Clean up code.