code: function(msg) {
        var gameOverElement = document.getElementById('gameOver'),
            gameOverMsgElement = document.getElementById('gameOverMsg'),
            waitingForPlayerElem = document.getElementById('waitingForPlayer');
        if (msg === false)  {
          gameOverElement.style.display = 'none';
        }
        else {
          gameOverMsgElement.innerText = msg;
          gameOverElement.style.display = 'block';
          waitingForPlayerElem.style.display = 'none';
        }
      }
docs: If passed "false", hides the gameOver dialog, otherwise displays string