public Board(String fName){
		ArrayList<String[]> tempMap = new ArrayList<String[]>();
		try {
			Scanner k = new Scanner(new File(fName));
			String[] row;
			while (k.hasNextLine()){
				row = k.nextLine().split(",");
				tempMap.add(row);
			}
			if (tempMap.size() > 0 && tempMap.get(0).length > 0){
				map = new BoardCell[tempMap.size()][tempMap.get(0).length];
				for (int i = 0; i < tempMap.size(); i++){
					for (int j = 0; j < tempMap.get(0).length; j++){
						boolean tempIsRoom = true;
						if (!tempMap.get(i)[j].equals("W"))
							tempIsRoom = false;
						map[i][j] = new BoardCell(i, j, tempIsRoom, tempMap.get(i)[j]);
						if (map[i][j].getDirection().contains("B")){
							startingPoint = new Point(map[i][j].getY(), map[i][j].getX());
							map[i][j] = new BoardCell(i, j, tempIsRoom, tempMap.get(i)[j].substring(1));
						}
					}
				}
			}
			setPreferredSize(new Dimension(map[0].length*50 ,map.length*50));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
	}