what is the problem with led trainer in arduino?
In your code you are using comparisons of the form pbX == HIGH, which are always true, since your pbX variables are integers with non-zero values. Probably you want to replace it by digitalRead(pbX)== HIGH, in order to read the switches connected to the pins designated by these variables. And the semicolon after the if clause probably is not doing what you expect. These are just technical problems with your code, but without going in depth into it, it looks to me that the logic implemented is far from your requirements.