when the fog began to lift , he discovered that , despite the sentries he had set out the previous night , the opposition had managed to cross the river under cover of the fog , so that his army was now completely surrounded by the enemy .