Buffalo Bill Cody, Wyoming