chess game in c++