Only count living characters when splitting XP at battle ends.

Closes #87.