public int clearRows() {
			
		boolean[] clear = new boolean[NUM_ROWS];
		int count = 0;
		
		for (int i=NUM_ROWS-1; i>2; i--) {
		
			clear[i] = false;
			count = 0;
			while (count < 10) {
				if (!dead[i][count])
					break;
				count++;
			}

			if (count == 10)
				clear[i] = true;
		}
		
		int score = 0;
		int toMove = 0;
		
		for (int i=NUM_ROWS-1; i>3; i--) {
			
			boolean stay = clear[i];
			
			if (clear[i] == true) {
				score++;
				toMove++;
				clear[i] = clear[i-toMove];
				clear[i-toMove] = false;
			}
			for (int j=0; j<10; j++) {
				screen[i][j] = screen[i-toMove][j];
				dead[i][j] = dead[i-toMove][j];
			}
			if (stay)
				i++;
		}
		
		return score;
	}