use the fact here to solve this puzzle.
Note : I think this puzzle can be solved without computer, but I am not sure.
After get all result and find the fact that middle cell is always 0, and many other facts, we still can optimize the code above.
Curios observation about a special grid - Why?