code that calls the animat to go to a location.