added end game trigger