Added logic to fill deficient square.