Added exitGame() function in global script