Uses event system to trigger end game.