Nursing home uses robot to help patients with dementia