Find min edits between strings and min path in the maze