All Blacks score thrilling win