changes to animation logic for walking