If the record was broken, the contestant's time will be the new record. Store the value of time in the record variable.
time
record
Make sure you assemble record = time;.
record = time;