C++ and JavaScript web-based chess variant