working (untested) solver for unambig. boards