Refactored print intersection function, much cleaner. tests pass