Little (very) chess program in c++