HTML and CSS Chessboard with JavaScript Drag and Drop Chess Pieces

When a piece is captured, move it to a blank square.

There are extra chess pieces outside the chessboard.