Define atom for global state.
Basic game functionality.