Chinese chess program example source code