fixed chess piece movement to occur on board under  update function instead of every move, this fixed the issue of movements being displayed during minimax functions execution