Now, natural selection ensured that these types of differentiated cells (who still had the same DNA) always wanted to be next to eachother because they survived better that way. So eventually many colonies were bred in the exact same configuration, and occasionally cells mutated to create traits that were beneficial and were added to the colony's "repertoire". This process became more and more complex until a colony could be described as a viable organism containing different "tissue".