public void update() {
		time++;
		int xa = 0;
		int ya = 0;
		Block b = blocks.get(0);
		if (input.keys[KeyEvent.VK_UP]) ya--;
		if (input.keys[KeyEvent.VK_DOWN]) ya++;
		if (input.keys[KeyEvent.VK_LEFT]) xa--;
		if (input.keys[KeyEvent.VK_RIGHT]) xa++;
		b.move(xa, ya, blocks);

		for (int i = 0; i < blocks.size(); i++) {
			Block block = blocks.get(i);
			if (random.nextInt(40) == 0) {
				block.xx = random.nextInt(3) - 1;
				block.yy = random.nextInt(3) - 1;
			}
			//block.move(block.xx, block.yy, blocks);
		}

	}