add hero walking code