This is what happens in your brain during sleep.