TetrisPiece()
	{
		int type = (int) (NumBrickTypes * Math.random() ); //rand() % globals.NumBrickTypes;
		int pose = (int) (NumPoses * Math.random() );//rand() % globals.NumPoses;
		brickType = type;
		brickPose = pose;
		width  = bricks[type][pose].w;
		height = bricks[type][pose].h;
		xposition = COLS/2 - 1;
		yposition = ROWS - STAGING_ROWS;
		int counter = 0;

		for( int i = 0; i < width; i++)
			for( int j = 0; j < height; j++)
			{
				String tempRow = bricks[type][pose].grid[j];
				if( tempRow.charAt(i) == 'X' )
				{
					xvalues[counter] = xposition + i;
					yvalues[counter] = yposition + j;
					counter++;
				}

			}
		assignColor();
	}