title: How to improve the speed resetting a minimax chess board implementation?
body: <p>I am programming a chess engine with minimax.</p>
  <p>I use an array with 120 elements for the board. For every possible move, I have to create a copy of this array which is really slow without using bitboard.</p>
  <p>Can I fasten this board copy part, e.g. using strings?</p>
  <pre><code>pisces.forEach(pisce=&gt;{
      pisce.forEach(move=&gt;{
            let copy=[...board]
            //other stuff
            board=copy
      })
  })             
  </code></pre>