Why won't the slide switches control the motor in this 123d simulation?
This should be written like this:

if ( digitalRead(guard)==HIGH &amp;&amp; digitalRead(switchPin)==HIGH ) {

// Rest of the code..

}