The virtual game was projected onto a mirror, allowing children to play while their brain activity was scanned by functional magnetic resonance imaging (fMRI).