passing game state from client to server