How does neurofeedback work?

https://www.youtube.com/watch?v=Fkq8JcLx1NE

Not sure what’s causing your pain?