public Tile[][] generateRandomBlock()
        {
               	Tile[][] piece = new Tile[0][0];
               	Random generator = new Random();
               	int randomIndex = generator.nextInt(7);
               switch(randomIndex)
               {
	                case 0:
	                         piece = generateLine();
               				break;
	                case 1:
	                        piece = generateSquare();
	                        break;
	                case 2:
	                         piece = generateLBlock();
	                         break;
	                case 3:
	                         piece = generateZBlock();
	                         break;
	                case 4:
	                        piece = generateReverseZBlock();
	                        break;
	                case 5:
	                         piece = generateReverseLBlock();
	                         break;
	                case 6:
	                        piece = generateTBlock();
	                        break;
               }
                return piece;
        }