Here's my mta with _js

The program works great, although I don't have input validations so if the input doesn't match an option exactly, the program will fail. The simulation loops until the user responds 'n' to the continue prompt. For two lines that have multiple intersections, the program choses the intersection that is closest to the starting point.