public int[] getButtonCoordinates(int personIndex, int id){
		int[] result = new int[4];
		int toneIndex = player.getHeight();
		double xFactor = 0.9;
		double yFactor = 0.9;
		int colIndex = 0;
		int i = 3;
		int j = 4;
		switch(id) {
		case 0:	colIndex = 2;	break;
		case 1:	colIndex = 10;	break;
		case 2: 
		case 3:	
		case 4:	
		case 5:	i = 2;
				j = 5;
				colIndex = 2+(id-2)*3;
				toneIndex = 2;
				break;
		case 6:	i = 1;
				j = 5;
				colIndex = 0;
				toneIndex = 2;
				break;
		case 7:	i = 1;
				j = 5;
				colIndex = 14;
				toneIndex = 2;
				break;
		case 8: i= 3;
				j= 3;
				colIndex = 6;
				toneIndex = 3;
		}

		double beginAngle = (double)((double)(-1-i)*.5 - xFactor)*radPerColumn() + radOffset;
		double endAngle = (double)((double)(1+i)*.5 + xFactor)*radPerColumn() + radOffset;

		double lowerRadius = getRadius() - ((double)(toneIndex+1) - yFactor)*squareHeight;
		double upperRadius = getRadius() - ((double)(toneIndex+j) + yFactor)*squareHeight;
		double midRadius = (lowerRadius+upperRadius)*.5;
		
		double width = Math.abs(midRadius*Math.cos(beginAngle) - midRadius*Math.cos(endAngle));
		double height = Math.abs(upperRadius - lowerRadius);
		
		beginAngle = (double)(personIndex*player.getWidth())*radPerColumn() + 
				(double)((double)(colIndex+1) - xFactor)*radPerColumn() + radOffset;
		endAngle = (double)(personIndex*player.getWidth())*radPerColumn() + 
				(double)((double)(colIndex+i) + xFactor)*radPerColumn() + radOffset;
		double midAngle = (beginAngle+endAngle)*.5;
		
		double x = midRadius*Math.cos(midAngle) + getWidth()/2;
		double y = translateY(midRadius*Math.sin(midAngle) + getHeight()/2);
		
		result[0] = (int)x;
		result[1] = (int)y;
		result[2] = (int)width;
		result[3] = (int)height;
		return result;
	}