Each player stores the local "Best Lap" value, but then I want to compare each of it to the "Record" value and update "Record" value in all of the devices if one of the individual "Best Lap" values < "Record" value.
Example:
Player A:
Best Lap: 1:28.548
Record: 1:26.784
Player B:
Best Lap: 1:25.487
Record: 1:26.784
As Player B beats the Record time of all, "Record" must be updated in all devices to be "1:25.487".
What is the way of collecting "Best Lap" values from all devices, compare them to "Record" value and share it back to devices if it was updated?
Thank you for your time!