src/main/java/com/webcheckers/model/CheckerBoard.java
public ArrayList<Piece> makeRedPlayerPiece(){
        ArrayList<Piece> redPlayerPiece  = new ArrayList<>();
        ArrayList<Row> RowIterator = (ArrayList<Row>) boardView.iterator();
        for(int row = 0; row < 3; row++){
            List<Space> AllSpace = (List<Space>) RowIterator.get(row).iterator();
            for(int col =0; col < 8; col ++){
                if(AllSpace.get(col).isValid()){
                    //true is red false is white
                    //
                    Piece newPiece = new Piece(row,col,true, redPlayer);
                    boardView.iterator().get(row).iterator().get(col).addPiece(newPiece);
                    redPlayerPiece.add(newPiece);
                }
            }
        }
        redPlayer.setPiece(redPlayerPiece);
        return redPlayerPiece;
    }
/**
     * Initialize all the pieces for redPlayer
     * The boardview is initialize from down to top which means index 0 is the bottom row
     */
Initialize all the pieces for redPlayer
The boardview is initialize from down to top which means index 0 is the bottom row
Initialize all the pieces for redPlayer The boardview is initialize from down to top which means index 0 is the bottom row
public ArrayList<Piece> makeRedPlayerPiece(){
        ArrayList<Piece> redPlayerPiece  = new ArrayList<>();
        ArrayList<Row> RowIterator = (ArrayList<Row>) boardView.iterator();
        for(int row = 0; row < 3; row++){
            List<Space> AllSpace = (List<Space>) RowIterator.get(row).iterator();
            for(int col =0; col < 8; col ++){
                if(AllSpace.get(col).isValid()){
                    Piece newPiece = new Piece(row,col,true, redPlayer);
                    boardView.iterator().get(row).iterator().get(col).addPiece(newPiece);
                    redPlayerPiece.add(newPiece);
                }
            }
        }
        redPlayer.setPiece(redPlayerPiece);
        return redPlayerPiece;
    }
public ArrayList < Piece > makeRedPlayerPiece ( ) { ArrayList < Piece > redPlayerPiece = new ArrayList < > ( ) ; ArrayList < Row > RowIterator = ( ArrayList < Row > ) boardView . iterator ( ) ; for ( int row = 0 ; row < 3 ; row ++ ) { List < Space > AllSpace = ( List < Space > ) RowIterator . get ( row ) . iterator ( ) ; for ( int col = 0 ; col < 8 ; col ++ ) { if ( AllSpace . get ( col ) . isValid ( ) ) { Piece newPiece = new Piece ( row , col , true , redPlayer ) ; boardView . iterator ( ) . get ( row ) . iterator ( ) . get ( col ) . addPiece ( newPiece ) ; redPlayerPiece . add ( newPiece ) ; } } } redPlayer . setPiece ( redPlayerPiece ) ; return redPlayerPiece ; }
Initialize all the pieces for redPlayer
 The boardview is initialize from down to top which means index 0 is the bottom row
Initialize all the pieces for redPlayer The boardview is initialize from down to top which means index 0 is the bottom row
//true is red false is white
 //
