diff --git a/htdocs/index.js b/htdocs/index.js
index ed85c5bc81025e287cfaba6e1782c5619486644a..2e24b2a26dc491c7b2397319fbdc63c7cfb28a48 100644
--- a/htdocs/index.js
+++ b/htdocs/index.js
@@ -10,7 +10,7 @@ const board = [
 ];
 const player = {
     host: false,
-    playedMove: board,
+    //playedMove: board,
     roomId: null,
     username: "",
     socketId: "",
@@ -324,6 +324,7 @@ function selectPiece(row, col) {
 }
 
 function highlightMoves(tour,piece, row, col) {
+    let direction = 0;
     if (player.isBlackPlayer===false){
         direction=-1;
     }