made client a class, with data member game