changing each position from a to z in a DFS rather than counting the difference