What is the wave function and what causes its collapse?