Re-designed Chess engine and converted in C++