How Did Consciousness Evolve