restless from days of enforced confinement in the coach and from trying unsuccessfully to find a better solution to the problem of alexandra , he turned from the rail and glanced along the wharf , where light spilled out from taverns and inebriated sailors staggered along , their arms flung over the shoulders of the whores who walked at their sides .