changed GameTime from struct to class