Where is the gate? I can’t see anything in that picture that resembles a gate. I do see what looks like maybe rooms of some sort, but gate?
I’m wondering if these were in fact, pits, that Goliath was kept there to protest the people. The gate might have been a barred lid that opened.