public BoardNode[] startingNodes(int color){
        int count = 0;
        if(color == 1){
            int y;
            for(y = 1; y<7; y++){
                if(this.getNode(0, y).getColor() == color){
                    count++;
             
                }
            }
            y = 1;
            BoardNode[] start = new BoardNode[count];
            count = 0;
            for(; y < 7; y++){
                if(this.getNode(0, y).getColor() == color){
                    start[count] = this.getNode(0, y);
                    count++;
             
                }
            }
            return start;
 
        }
        else{
            int x;
            for(x = 1; x < 7; x++){
                if(this.getNode(x, 0).getColor() == color){
                    count++;
             
                }
            }
            x = 1;
            BoardNode[] start = new BoardNode[count];
            count = 0;
            for(; x<7; x++){
                if(this.getNode(x, 0).getColor() == color){
                    start[count] = this.getNode(x, 0);
                    count++;
                     
                }
            }
            return start;
 
        }
 
 
    }