Implementation of preferences to update the difficulty and the amounts of lives