New rehab device aims to 'rewire' stroke patients' brains