move walk.append(pos) to end of for loop