public boolean isEnPassantMove(Piece piece, Field from, Field to, Move lastMove) {
		if (piece instanceof Pawn) {
			Pawn pawn = (Pawn) piece;
			if (pawn.canMoveEnPassant(this.window.board, from, to)) {
				Field capturedPawnField = this.window.board.getField(to.file, from.rank);
				if (capturedPawnField.hasPiece()) {
					Piece capturedPawn = capturedPawnField.getPiece();
					if (capturedPawn instanceof Pawn && lastMove != null && lastMove.piece == capturedPawn && Math.abs(lastMove.to.distanceBetweenRank(lastMove.from)) == 2) {
						return true;
					}
				}
			}
		}
		return false;
	}