src/main/java/com/webcheckers/model/Game.java
/**
     * backs up a move previously made
     * @return if a move was backed up returns true, else false.
     */
backs up a move previously made
@return if a move was backed up returns true, else false.
backs up a move previously made @return if a move was backed up returns true else false .
public boolean backUp(){
        Move move = this.turn.getPrevMove();
        this.turn.remove_move();
        int currRow = move.getStart().getRow();
        int currCell = move.getStart().getCell();
        int endRow = move.getEnd().getRow();
        int endCell = move.getEnd().getCell();
        setTurnAttr(currRow, currCell);
        Piece end = this.boardView.getSpace(endRow, endCell).getPiece();
        if (Math.abs(currRow - endRow) == 2){
            this.boardView.getSpace(currRow, currCell).setPiece(end);
            this.boardView.getSpace(endRow, endCell).setPiece(null);
            int row = ( currRow + endRow ) / 2;
            int col = ( currCell + endCell) / 2;
            Piece capturedPiece = this.turn.rem_capture();
            this.boardView.getSpace(row,col).setPiece(capturedPiece);
            revertPiece(capturedPiece.color);
        } else {
            this.boardView.getSpace(currRow,currCell).setPiece(end);
            this.boardView.getSpace(endRow, endCell).setPiece(null);
        }
        return true;
    }
public boolean backUp ( ) { Move move = this . turn . getPrevMove ( ) ; this . turn . remove_move ( ) ; int currRow = move . getStart ( ) . getRow ( ) ; int currCell = move . getStart ( ) . getCell ( ) ; int endRow = move . getEnd ( ) . getRow ( ) ; int endCell = move . getEnd ( ) . getCell ( ) ; setTurnAttr ( currRow , currCell ) ; Piece end = this . boardView . getSpace ( endRow , endCell ) . getPiece ( ) ; if ( Math . abs ( currRow - endRow ) == 2 ) { this . boardView . getSpace ( currRow , currCell ) . setPiece ( end ) ; this . boardView . getSpace ( endRow , endCell ) . setPiece ( null ) ; int row = ( currRow + endRow ) / 2 ; int col = ( currCell + endCell ) / 2 ; Piece capturedPiece = this . turn . rem_capture ( ) ; this . boardView . getSpace ( row , col ) . setPiece ( capturedPiece ) ; revertPiece ( capturedPiece . color ) ; } else { this . boardView . getSpace ( currRow , currCell ) . setPiece ( end ) ; this . boardView . getSpace ( endRow , endCell ) . setPiece ( null ) ; } return true ; }
backs up a move previously made
 @return if a move was backed up returns true, else false.
backs up a move previously made @return if a move was backed up returns true else false .