changed IR to sensor message, created function to navigate to pile