Update simplifyPath.java