public void drawBoard(Graphics g,Board b){
        for(int i= 0; i < 8; i++){
            for(int j= 0; j < 8; j++){
                if (b.get(i, j) == 1){
                    drawPiece(g,whitePieceImg, i+1, j+1);
                }else if (b.get(i, j)== 2){
                    drawPiece(g,blackPieceImg, i+1, j+1);
                }
            }
        }
    } // end drawBoard