Checking a goal after an agent dies bug fixed. Die has to be the last action to do, even after goal checking #19