his friend had been recruited from the green berets at the same time as gray had been pulled from leavenworth prison , where he 'd been incarcerated after striking a superior officer during his stint with the army rangers .