Solenoid Help

We have a problem with our solenoid. We are using robotc to program it. The connection is piston to smc double solenoid to a spike. The pwm from the spike to relay 2. Everytime we I run this code. The spike light just turns red to orange everytime I press button 1 and button 2 or 3 interchangeably. The light never turn green. There is no moment in the smc solenoid. btw is the solenoid connects to two piston or only one. Is it our setup or our code. WE ARE DESPARATE WE NEED HELP. If somebody is around Bloomfield NJ and is willing to come in and help us. We will be forever grateful. We are meeting saturday and monday.

while(frcOIJoystickButtons[oiButtonPort2Button1] ==1) //
{
 	frcRelay[relay2] = relayFwd;
}
while(frcOIJoystickButtons[oiButtonPort2Button2] ==1) //
{
         frcRelay[relay2] =relayRvs;
}
while(frcOIJoystickButtons[oiButtonPort2Button3] ==1) //
{
  frcRelay[relay2] =relayOff ;
}