private void readGrid() throws FileNotFoundException, IllegalArgumentException, ArrayIndexOutOfBoundsException{
		boardReader = new Scanner(startBoard);
		String row = "";
		int rowCount = 0;
		while (boardReader.hasNext()) {
			row = boardReader.next();
			rowCount++;
		}
		boardReader = new Scanner(startBoard);
		gridOut = new Cell[rowCount][row.length()];
		for (int i = 0; i < rowCount; i++) {
			row = boardReader.next();
			for (int j=0; j < row.length(); j++) {
				if (row.charAt(j)=='X') {
					gridOut[i][j] = new Cell(true);
				}
				else if (row.charAt(j)=='O') {
					gridOut[i][j] = new Cell(false);
				}
				else {
					throw new IllegalArgumentException();
				}
			}
		}
		for (Cell[] checkRow : gridOut) {
			if ((checkRow.length)!=gridOut[0].length)
				throw new ArrayIndexOutOfBoundsException();
		}
	}