added startOrExitGame method