public static int overallMines(MineGen theGrid, int gridX, int gridY) {
		// This method receives the coordinates of the square that is on the overall grid
		// and returns the number of its closest mines.
		int a = gridX;
		int b = gridY;
		int mineCount = 0;

		if (theGrid.hasMine(b, a + 1))
			mineCount++;

		if (theGrid.hasMine(b, a - 1))
			mineCount++;

		if (theGrid.hasMine(b + 1, a))
			mineCount++;

		if (theGrid.hasMine(b - 1, a))
			mineCount++;

		if (theGrid.hasMine(b + 1, a + 1))
			mineCount++;

		if (theGrid.hasMine(b - 1, a + 1))
			mineCount++;

		if (theGrid.hasMine(b + 1, a - 1))
			mineCount++;

		if (theGrid.hasMine(b - 1, a - 1))
			mineCount++;

		return mineCount;
	}