Cellular Automata Modeling of Diffusion under Confinement