/**
* A input gate has a new signal
* @param gate
*/
public void signalHasBeenReceived(CircuitGate gate) {
Signal signal = gate.getCurrentSignal();
if (signal instanceof ColoredSignal){
receivedColor = ((ColoredSignal)signal).getColor();
} else {
receivedColor = null;