diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -23,7 +23,6 @@
             return
 
         dfs(0, 0)
-        cost += 1
 
         while queue:
             if (m - 1, n - 1) in queue:
