/**
* Adds capturing information to a move
*/
public static void addCaptureInformationToMove(Board board, Move move) {
GameColor color = move.getColor();
GameColor colorForCaptures = (color == GameColor.White ? GameColor.Black : GameColor.White);
Board s = new Board(board).addMoveWithoutCaptures(move);
if (move.getTo() == move.getFrom() + 2) { //if distance is 2, jump over occured and is necessary to delete piece in the middle
move.addCapturedPieceIndex(move.getFrom() + 1);
} else if (move.getTo() == move.getFrom() - 2) {