Added drawing logic for DFS