public TetrisPanel()
	{
		setFocusable(false);
		addKeyListener(new KeyListener()
		{
			public void keyReleased(KeyEvent e) {}
			public void keyPressed(KeyEvent e)
			{
				if (e.getKeyCode() == KeyEvent.VK_LEFT)
					move(-1);
				else if (e.getKeyCode() == KeyEvent.VK_RIGHT)
					move(1);
				else if (e.getKeyCode() == KeyEvent.VK_UP)
				{
					if (current.canRotate())
					{
						ColorTetris temp = current.rotate();
						current = temp;
						repaint();
					}
						
				}
				else if (e.getKeyCode() == KeyEvent.VK_DOWN)
				{
					if (speed == initialSpeed)
						setSpeed(1);
					repaint();
				}
			}
			public void keyTyped(KeyEvent e) {}
		});
		tetrices = new ArrayList<ColorTetris>();
		rectangleGrid = new ColorRectangle[28][25];
		occupancyGrid = new boolean[28][25];
		
		initialSpeed = 100;
		speed = 100;
		t = new MoveTimer(speed, this);
	}