A simple chess application in C++