Better version (with AI): https://scratch.mit.edu/projects/1060748182/ Drag the pieces.
The game can now end by stalemate or checkmate. chess.com for sounds. wikimedia for pieces.