Back-end for a chess game in object-oriented C++.