fixed problem with concurrent edits for join game, end turn and send ships by adding a nonce field to the game document that is regenerated each save and then checked on update to make sure nobody else changed it in the meantime. created function: saveGameByIdWithConcurrencyProtection to facilitate this easier