finished path loop detection