Implemented diffusion of resources into and out of cells, based on which channels are open.