chess.js is not resetting code example Example: chess.js # NPM npm install chess.js # Yarn yarn add chess.js