Titans fight back to edge Warriors in NRL