Added token handling, added postmortem packet at the end of the game