After reading the eight-way way to the book, I found that it can be more simple than I think, I don't need to expand in eight directions. I only need to find the path to eight directions. I can find it. The shortest path.