Create simplifyPath.java