delete gameover function and change visualWhenGameOver function in UI