gamegeneral script - endgame