Add weights based on surrounding square factors.