Added functionality to the exit game button.