target distance checking and forward movement