cleaned up the grid at the end of the find_path function