anchor.diff:  board = new ChessBoard('board', cfg);
   
   updateStatus();
  +
  +
   </script>
  +
   <script>
   $(function() {
     if ("<%= current_user.id %>" === "<%= @room.player2_id %>") {
  
positive.code: 
  <script src="/assets/chess.js"></script>
  <script>
  var board,
    game = new Chess(),
    statusEl = $('#status'),
  
negative.code: 
      onDrop(data.object_notation.split('-')[0], data.object_notation.split('-')[1]);
      board.move(data.object_notation);
  
      switchTurn();
  
      var numBlackPawns = (data.fen.split(" ")[0].match(/p/g) || []).length;
      var numWhitePawns = (data.fen.split(" ")[0].match(/P/g) || []).length;
  