This is a really tricky one to solve because what's actually happening is -
The server decides who wins.
It decides based on the first person's game to send a message to the server to say "I have grabbed the crown" and then the server to confirm "yes, they have grabbed the crown".
So why is it possible for you to see that you grab the crown before they do?
Lag/De-Sync/Ping - The position of player's that you see is not the same thing that the other player's see. When a player moves, a message is sent to the server, and then the server sends that message to all other players.
Unfortunately, if you don't have a great connection, or the other player doesn't have a great connection, the amount of time to get the positions of all other players could mean that you're seeing players noticeably behind where they are.
So... when you see someone win, but it looked like they were behind you... they were actually the first one to grab the crown...
Read more