Dynamics of intercellular communication during melanoma development