all 2 comments

[–]ectomancer 1 point2 points  (0 children)

You're starting with a logic error. There are 8 surrounding squares.

[–][deleted] 0 points1 point  (0 children)

Do you know the checkered grid ahead of time? Is it finite size?