private void checkWinCondition()
	{
		boolean allCellsFlagged = true;

		for (int x = 0; x<boardSize; x++) { //iterate through board
			for (int y = 0; y<boardSize; y++) {
				if (cells[x][y].getMined() && !cells[x][y].getFlagged()) { //if a cell with a mine hasn't been flagged, then the game can't have been won
					allCellsFlagged = false;
				}
			}
		}
		if (allCellsFlagged) {
			gameWon = true; //if we get here, all cells have been flagged
		}
	}