Shouldn't it be running at every tick of the game rather than just the junctions? Pac-Man should be able to change direction at any point.
It may not matter if the ghosts' next move is predictable over that maximum distance.
It may not matter if the ghosts' next move is predictable over that maximum distance.