When the win / lose is called on the ui player it will pop up a dialogue that results in the game ending.