Israel's goal, and Hamas': a cease-fire on better terms