both enemy and player occupy same id problem

Good day. I got a checkers app that uses PUN. 99% of the time it is perfect but sometimes when matching, same player can occupy the same id and causes the game to get stuck.

For the checkers game, the scenario is the player is creating a room and then the other player connects. usually the one who creates is the white player and the one who joins the room is the dark player. and in checkers white piece always first to move. but when they get connected to a match, both players becomes the dark player causes the game to get stuck since the white player is empty. what usually is the problem here? also, can anyone help if like when matching, both players gets randomly the white or dark piece so that not every time the one who creates is the white player.

any advice would be appreciated. thank you.