optimize loops thru board in updateConstraints