Help for simpler solution, check if both player is ready with cloudDB

Here is my solution, i was wondering if there is a simpler way to do it?

2 buttons, 1 button for each player, When one of the button clicked, it will disabled all button and upload data to cloudDB. cloudDB will tell the other side which button is selected and disable it too while waiting for the 2nd player. Once both player ready, I start the game. I use label to determine the status.