The Nez Perce nearly reached freedom but then everything changed