The code doesn't support any game rules, so you have to play like it is over the board. Pieces move like in normal chess, but castling can be done by switching the king and rook. Extra queens on the side for pawn promotion
I click button and move box to make piece move