I'm trying to find a way to implement a simple ON/OFF switch, alongside a START/STOP switch in a simple digital circuit. Here's an example simulation of what I did:
As you can see, I have some undefined states in the fourth case, when the circuit is off, but its functionality is started. What would be ideal in this case is, when the on/off switch is on (not pushed), the start/stop switch can change states independently, but when the on/off switch is off (pressed down), the start/stop switch goes down with it. What would be a good way to implement this in the digital domain?
The circuit is a simple digital dice. When it is started, the LEDs change states between numbers 1-6 quickly, and when it is stopped, the LEDs stop at one of the states. The on/off switch, however, turns off the LEDs and IC that drives them.

