diff --git a/src/skecth.js b/src/skecth.js index 42f20ab..f4a4583 100644 --- a/src/skecth.js +++ b/src/skecth.js @@ -44,7 +44,9 @@ function draw() { visiteds.push(neighbour); stack.push(neighbour); } - } + } else + // Stop Calling draw function + noLoop(); grid.show(); }