Solver for ancient chinese board game