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.
Best Lap: 1:28.548
Best Lap: 1:25.487
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!