Depth First Search Implementation Python Snake