Updated script with all track coordinates, and added a debug functionality for checking the trains completion per track (doesn't work for the bx line...)