public AbstractPiece[][] move(AbstractPiece [][] chessboard, int[] start, int [] end){        

                 if(correct(chessboard, start, end)) //Check if its a valid move
                 {         

                                                 for(int i = 0; i < chessboard.length; i++){                                        //Move piece to new position.
                                                         for(int j = 0; j < chessboard[0].length; j++){
                                                                 if((i == start[0]) && (j == start[1])){
                                                                         chessboard[end[0]][end[1]] = chessboard[start[0]][start[1]];
                                                                         chessboard[i][j] = EMPTY;
                                                                 } 
                                                         }
                                                 }
                 } 
        
                 return chessboard;
                 
        }