private void checkForPoints() { for (int i = 0; i < coordinates.length; i++) { boolean test = true; for (int j = 0; j < coordinates[i].length; j++) { test = test & coordinates[i][j]; } if (test == true) { addScore(coordinates[i].length); for (int j = i - 1; j >= 0; j--) { System.arraycopy(coordinates[j], 0, coordinates[j + 1], 0, coordinates[j + 1].length); } } } }