Add path intersection detection