fix bugs in solochess.py

and improve doctest