added some dead-end condition checks to LRTDP