Parsing for bay bridges problem. Solution is still not complete.