Update unique path.java