updating class and game