In Ludo King, describe the algorithm used to determine the movement of pieces based on the dice roll. Specifically, how does the game ensure fair randomness in the dice roll, and how are valid moves calculated and updated in real-time across a networked multiplayer game?