Fixed issue #24 and issue #29 by rewriting function that corrects party order after someone dies