Add function calculating neighbor mine count