Puppet Arcade Game

You control the relay. You are not directly using the switch or sound state to control the relay.

Step back and ask- "how can I change the value of a variable based upon an external switch" and "how can I change the value of a variable when there is no sound"
because that's all you need to figure out. The rest is just an intelligent use of those variables in code.