Can it be that in the primeval ocean, thanks to some energy source like sunlight, volcano or lighting, the amino acids randomly unite a long chain (protein?) and some of which were able to increase their length. When a chain was too long it broke, and if the sequences were similar enough to the original, and chain broke in right place, it had the ability to increase its amino acid chain just like the “parent”. Thus those chains which were able to grown the chain with similar sequences than they have and have a weak point in the right places, could “reproduce”. After that they “learn” how to use another chain as resource for themselves then they try to defend it, which later evolves to a singular cell.