Added code to disable the new game button until the new game dialog is exited.