function isSolved(){
      for(var i = 0; i < WIDTH; i++){
        for(var j = 0; j < HEIGHT; j++){
          if(!gridSquares[i][j].live.isCorrect()){
            return false;
          }
        }
      }

      return true;
    }
/*
     * returns true if all the blocks are in the right place
     */
returns true if all the blocks are in the right place
returns true if all the blocks are in the right place
function isSolved(){
      for(var i = 0; i < WIDTH; i++){
        for(var j = 0; j < HEIGHT; j++){
          if(!gridSquares[i][j].live.isCorrect()){
            return false;
          }
        }
      }
      return true;
    }
function isSolved ( ) { for ( var i = 0 ; i < WIDTH ; i ++ ) { for ( var j = 0 ; j < HEIGHT ; j ++ ) { if ( ! gridSquares [ i ] [ j ] . live . isCorrect ( ) ) { return false ; } } } return true ; }
returns true if all the blocks are in the right place
returns true if all the blocks are in the right place