Chess in C++ using Qt