How to hack your brain when you're in pain