Fixed the bug in endpoint. Prints a list of unvisited checkpoints