Finished game-independent state machine bits

All that remains is to write the individual state machines
for each game we get and test the whole bundle.