PathFinder.java with placeholders