terms changed
condition changed
condition added to not test all cells of the square, but the edges only
condition changed to be more coherent with _isSurrounded function