implement determine_jumping_bridges