C++ Chess example for code learning