all surrounding boxes and calculated the number of bombs