Yankees pitcher Sonny Gray walks off the field