Tank game for C++ class