made a while loop in bridge scene