private void setAdjacentNumbers()
	{
		//top two for loops iterate through the board and pass each cell into the second two for loops, which check each cell adjacent to the cell for a mine
		for (int x = 0; x<boardSize; x++) { //this is to iterate through each cell
			for (int y = 0; y<boardSize; y++) {
				
				for (int t = x-1;t<x+2;t++) { //3x3 grid of original cell, checks for mines in this grid and if so increments counter for original cell
					for (int b = y-1; b<y+2; b++) {
						if (t<0 || b < 0 || t>boardSize-1 || b>boardSize-1 ) { //so that out of bounds cannot occur
							continue;
						}
						if (cells[t][b].getMined()) { //if there is a mine in one of the adjacent cells
							cells[x][y].incrementAdjacentMines(); //then increment the number of adjacent mines
						}
					}
				}
			}
		}
	}