chance this If not possible, go to step 1.
by changing these
- the bold 1 can move up, left and right, but not down (since there's a 1 in that spot).
- The italics 1 can move up, down and left, but not right (since it is the end of the grid)
for example let the italic 1 go left like the "wall" forces it to do it.
Because This is to simulate sort of a simple classical gas in a 2D container.
one idea is that the move of the bold 1, recursively cause many moves, if you choose "down" where there exists allready one 1.