Now counts intersections, but GUI not working