Replaced refresh('protein'); and refresh('ligand'); by a for each
Add and remove molecules dynamicallyl