Top Level state - Game Master
Hierarchical state machines have consistency derived from the recursive structure, but the top level must be specially designed so that all of the sub-layers are treated equally. The files below were used to ensure that all events, states, and timers were included in every file. Furthermore, the collection of #defines made it very straightforward to avoid naming and pin conflicts. A special main is also necessary so the HSM is only accessed at the top.