if (temp.array1.size > 2 || temp.array2.size > 2) {
for (temp.i = 0; temp.i < temp.array1.size - 3; temp.i++) {