Added constraints between cells and walls