Simulation of a random walk using the hard volume constraint. The cell must always have either 1 or 2 pixels.