public void read() throws IOException, FileTooShortException {
		try {
			for (int m = 0; m < 9; m++) {
				// reads in a line
				line = reader.readLine();

				for (int j = 0; j < 9; j++) {

					// if the reading in is equal to space then set it to 0
					if (line.length() != 9) {
						throw new FileTooShortException(
								"Error, not enough characters");

					}
					if (String.valueOf(line.charAt(j)).matches("[A-Za-z]")) {
						throw new InvalidCharacterException(
								"There's characters in the file please change the file");
					} else if (String.valueOf(line.charAt(j)).equals(" ")) {
						value = 0;
					} else {
						// parse the String as an int
						value = Integer
								.parseInt(String.valueOf(line.charAt(j)));
					}
					// set the square
					b.getSquare().setSquare(m, j, value);

					System.out.print(b.getSquare().getSquare(m, j));
				}

				System.out.print("\n");
			}
			reader.close();

			System.out.print("\n");

			Solver s = new Solver(b);

		} catch (NullPointerException e) {

		} catch (InvalidCharacterException e) {

		}
	}