Updated ParameterlessSwitch

changed the go() method to a recursive function