Move the addition to the localstorage to the addPlayer or addParent function