src/main/java/com/webcheckers/model/Game.java
/**
     * Ends the player turn
     * @return true if move made and turn ended, false otherwise
     */
Ends the player turn
@return true if move made and turn ended, false otherwise
Ends the player turn @return true if move made and turn ended false otherwise
public boolean endTurn(){
        Move prev = this.turn.getPrevMove();
        if (Math.abs(turn.getPrevMove().getStart().getRow() - turn.getPrevMove().getEnd().getRow()) != 2){
            this.backUp();
            if (!check_board()){
                this.makeMove(prev);
                this.getTurn().add_move(prev);
                return false;
            }
            this.makeMove(prev);
            this.getTurn().add_move(prev);
        } else {
            if (!checkBoardDoubleJump(prev.getEnd().getRow(), prev.getEnd().getCell())){
                return false;
            }
        }
        if (this.activeColor == PieceColor.RED){
            this.activeColor = PieceColor.WHITE;
        } else {
            this.activeColor = PieceColor.RED;
        }
        this.turn = new Turn();
        return true;
    }
public boolean endTurn ( ) { Move prev = this . turn . getPrevMove ( ) ; if ( Math . abs ( turn . getPrevMove ( ) . getStart ( ) . getRow ( ) - turn . getPrevMove ( ) . getEnd ( ) . getRow ( ) ) != 2 ) { this . backUp ( ) ; if ( ! check_board ( ) ) { this . makeMove ( prev ) ; this . getTurn ( ) . add_move ( prev ) ; return false ; } this . makeMove ( prev ) ; this . getTurn ( ) . add_move ( prev ) ; } else { if ( ! checkBoardDoubleJump ( prev . getEnd ( ) . getRow ( ) , prev . getEnd ( ) . getCell ( ) ) ) { return false ; } } if ( this . activeColor == PieceColor . RED ) { this . activeColor = PieceColor . WHITE ; } else { this . activeColor = PieceColor . RED ; } this . turn = new Turn ( ) ; return true ; }
Ends the player turn
 @return true if move made and turn ended, false otherwise
Ends the player turn @return true if move made and turn ended false otherwise