Correct calculation of adjacent mine count