Need to think about how to treat times greater than 24
Somehow, the checks to avoid duplicating previously visited stops are not working