@Override
		public void keyPressed(KeyEvent e)
		{
			int rotation = 0;
			if (e.getKeyCode() == KeyEvent.VK_DOWN)
				activeTetromino.doMoveDown();
			if (e.getKeyCode() == KeyEvent.VK_LEFT)
			{
				activeTetromino.doMoveLeft();
				if (activeTetromino.sideCollision(getXArray(), getYArray()))
					activeTetromino.doMoveRight();
			}
			if (e.getKeyCode() == KeyEvent.VK_RIGHT)
				activeTetromino.doMoveRight();
			{
				if (activeTetromino.sideCollision(getXArray(), getYArray()))
					activeTetromino.doMoveLeft();
			}
			if (e.getKeyCode() == KeyEvent.VK_UP)
				rotation = 90;
			doCollisionChecksAndPaint(rotation);

		}