updated C++ client to use an array for tank values