public boolean addNumberToBoard () {
		int row = 0, col = 0, counter = 0;
		Random randomGenerator = new Random();
        /* Checks board size */
		if (size.equals("9x9")) {
            /* uses a while loop to generate a random number and then an if statement to place a solution */
			while (counter < 200) {
				row = randomGenerator.nextInt(9);
				col = randomGenerator.nextInt(9);
				if ( (entries[row][col].getText().equals("")) && (entries[row][col].isEditable())) {
					entries[row][col].setText(solution[row][col]);
					entries[row][col].setForeground(Color.WHITE);
					entries[row][col].setEditable(false);
					entries[row][col].setBackground(Color.DARK_GRAY);
					return true;
				}
				counter++;
			}
		} else { /* Same as above for 16x16 board */
			while (counter < 200) {
				row = randomGenerator.nextInt(16);
				col = randomGenerator.nextInt(16);
				if ((entries[row][col].getText().equals("")) && (entries[row][col].isEditable())) {
					entries[row][col].setText(solution[row][col]);
					entries[row][col].setForeground(Color.WHITE);
					entries[row][col].setEditable(false);
					entries[row][col].setBackground(Color.DARK_GRAY);
					return true;
				}
				counter++;
			}
		}
		return false;
	}