Simplify code in do_test: use stringstream to read solution moves.