Create event and listener for end of game