implemented num of mines function. Will allow for label update