Added code for player updates, both client and server