Handle game.ended event to avoid memory leaks
Merge pull request #10 from mastahu/master

Handle game.ended event to avoid memory leaks