walking and running animations now work correctly