first recognition-movement loop implemented