                 board[rook][new] = true
             }
         }
-        _moveHistory.append((move, piece, capture, attackersToKing, halfmoves, rights))
+        _moveHistory.append((move, piece, capture, enPassantTarget, attackersToKing, halfmoves, rights))
         if let capture = capture {
             board[capture][captureSquare] = false
         }

                board[rook][new] = true
            }
        }
        _moveHistory.append((move, piece, capture, attackersToKing, halfmoves, rights))
        if let capture = capture {
            board[capture][captureSquare] = false
        }

    private var _moveHistory: [(move: Move,
                                piece: Piece,
                                capture: Piece?,
                                enPassantTarget: Square?,
                                kingAttackers: Bitboard,
                                halfmoves: UInt,
                                rights: CastlingRights)]
