chess in cpp