if (up) {
if (isUp()) {
	public void paint(Graphics g) {		if (img == null) {			img = createImage(DIM.width, DIM.height);		}		Graphics g2 = img.getGraphics();		g2.setColor(COLORS[0]);		g2.fillRect(0, 0, DIM.width, DIM.height);		for (int i = 0; i < WIDTH_C + 2; i++) {			for (int j = 0; j < HEIGHT_C + 2; j++) {				int ci = WORLD[i][j];				if (ci > 0)					paintBox(g2, i, j, COLORS[ci]);			}		}		{			Color c = COLORS[COLORS.length - 1];			for (int i = 0; i < WIDTH_C + 2; i++) {				paintBox(g2, i, HEIGHT_C + 6, c);			}			for (int j = 0; j < 4; j++) {				paintBox(g2, 0, HEIGHT_C + 2 + j, c);				paintBox(g2, 5, HEIGHT_C + 2 + j, c);				// paintBox(g2, 6, HEIGHT_C + 2 +j, c );				paintBox(g2, WIDTH_C + 1, HEIGHT_C + 2 + j, c);			}		}		if (up) {			int[][] b = BLOCKS[si][bi];			for (int i = 0; i < b.length; i++) {				paintBox(g2, x + b[i][0], y + b[i][1], COLORS[si + 1]);			}			{				g2.setColor(Color.WHITE);				g2.drawString("SCORE:", CELL + 2, (HEIGHT_C + 4) * CELL - 4);				g2.drawString(String.valueOf(score), 2 * CELL, (HEIGHT_C + 5)						* CELL - 4);				b = BLOCKS[next_si][next_bi];				for (int i = 0; i < b.length; i++) {					paintBox(g2, 7 + b[i][0], HEIGHT_C + 2 + b[i][1],							COLORS[next_si + 1]);				}			}		} else if (end) {			g2.setColor(Color.BLACK);			g2.fillRect(2 * CELL, 9 * CELL, 8 * CELL, 4 * CELL);			g2.setColor(Color.WHITE);			g2.drawRect(2 * CELL, 9 * CELL, 8 * CELL, 4 * CELL);			g2.drawString("GAME OVER! SCORE: " + score, (WIDTH_C - 6) * CELL					/ 2 + 2, (HEIGHT_C + 2) * CELL / 2);		}		g2.dispose();		g.drawImage(img, 0, 0, this);	}