use swapping when accepting a new state
tree9965ccfe5699a2e9fe0b1a70a90e71314eaa8b62
-rw-r--r-- 5569 main.cpp