Added code that marked visted neighbors as true so that it doesn't revist those cells, this should make it so that the path shouldn't overwrite the current path