Adds end-of-game support
Merge pull request #123 from cauchymop/end-of-game

Adds end-of-game support