Changes to isValidTransion to enable checking points exist as junctions