8
Naming
s is a poor name for a boolean array. I have no idea what s stands for. How about surroundingTiles?
Array ordering
Additionally, the order of the tiles seems strange to me. It's ... bottom, right, top, left, bottom right, top right, top left, bottom left. Without the image, I don't thin...