added feet collision check; shifting to one leg