Hi Isildur and Lilian. "Jouer des pieds et des mains" is an expression that means "to do anything that is possible to do" (whatever the way you're using is), it means "to fight for something". This guy desperatly tried to get back home, despite (I guess so) inundations (floods).
Hope that helps.