a little change to chess.cpp