updated degreeAway problem for golang