Using virtual reality to improve physical therapy