To solve the first visited home of crack