Like Ludo game multiplayer online game

When I press connect in device1 it automatically starts the game on both of them, I mean that there is no chance to press connect in another device2, And still every device’s events are different.