nameGame method added