Got the line intersection working properly
Found the smallest polygon