public void makeTileMap(int rows, int cols, int pixelWidth){
		
		tileMap = new BufferedImage[cols + ((rows-1)*cols)];
		blockedTiles = new BufferedImage[cols + ((rows-1)*cols)];
		passTiles = new BufferedImage[cols + ((rows-1)*cols)];
		
		//fill passTiles and blockedTiles with appropriate tiles from tileset
		
		for(int i = 0; i < rows; i++){
			for(int j = 0; j < cols; j++){
				BufferedImage mapImage = tileSet.getSubimage(j*pixelWidth, i*pixelWidth, pixelWidth, pixelWidth);
				tileMap[j + (i*cols)] = mapImage;
				if(i==1){
					blockedTiles[j + (i*cols)] = mapImage;
					passTiles[j + (i*cols)] = tileSet.getSubimage(0, 0, pixelWidth, pixelWidth);
				}
				if(i ==0){
					passTiles[j + (i*cols)] = mapImage;
					blockedTiles[j + (i*cols)] = tileSet.getSubimage(0, 0, pixelWidth, pixelWidth);
				}
			}
		}
	}