Using virtual reality for chronic pain