Switch cells between moving and resting states based on local density. Uses tanh_switch function. Assumes lgca.nodes is (K, dims…). No birth or death in this version.