amazing, thanks.
I will study your code and implement some own logic of mine.
It has incredible possibilities for compiling. I was able to run this on an ARM processor as well on Amd Zen 2, 3 and 4
on almost everything.....
https://doc.rust-lang.org/rustc/platform-support.htmlexample
RUSTFLAGS="-C target-cpu=znver4" cargo build --release --target=x86_64-unknown-linux-gnu
run
./target/x86_64-unknown-linux-gnu/release/puzzle