This is a complete well automated chess game made by object oriented javascript I hope you like it.
Play it from here: http://127.0.0.1:5500/chess.html
The chess pieces images are originaly made by Clker-Free-Vector-Images from Pixabay you can get get it from here.