Anti-sway system for ship-to-shore cranes