Pistons hire former rival as new head coach