I\'m working on a Chess game in vanilla JS. I added drag and drop functionality for the pieces using transform: rotate(180) for black so that their pieces would be
transform: rotate(180)