basic intersection routine completed with test case set up. Still buggy though