Can't make my Arduino Uno analogWrite!

Hello, I made a simple project, one rgb led, potentiometer and one button! Idea is to switch colors with button and then analogWrite tihem with one potentioMeter, but i cant make it work.. It's probably code mistake but i cant see it..
Here is the code:

int broj = 1;
int crvena = 3;
int zelena = 5;
int plava = 6;
int dPin = 2;
int stanje = 0;
int astanje = 0;


void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(crvena, OUTPUT);
pinMode(zelena, OUTPUT);
pinMode(plava, OUTPUT);
pinMode(dPin, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
stanje = digitalRead(dPin);
astanje = analogRead(0);
if (stanje == HIGH){
  broj++;
  delay(500);
}
switch (broj){
  case 1:
  analogWrite(crvena, astanje / 4);
  Serial.println("1");
  break;
  case 2:
  analogWrite(zelena, astanje / 4);
  Serial.println("2");
  break;
  case 3:
  analogWrite(plava, astanje / 4);
  Serial.println("3");
  break;
  case 4:
  broj = 0;
  Serial.println("4");
  break;
}
}

but i cant make it work

That is a poor description of the problem. We already know that. If your sketch worked would you be here? What is happening when you run the code? What values are returned by the analogRead (insert a serial print)? Do you have a pulldown on the switch input? What values are returned by the switch?
San you provide a schematic of the setup?