A path to avoid the flooded part of the beach