うろつく

Etymology
From.

Verb

 * 1) to loiter; to putter; to prowl; to wander aimlessly; to knock around; to hang around​
 * 2) to be at a loss, to be confused from not knowing what to do
 * 1) to be at a loss, to be confused from not knowing what to do