As Frontier is initialized, it starts with a size of 1 and is immediately decremented (as intended). When it is trying to reference the adjacencies present in the "adjacents.txt" file, it does not read that any adjacencies are present and immediately terminates the whole program as if it was at a dead end.