generator rex ending explained