moved pause-controlling code to state
added menu skeleton