Created an event for when the game is ended