init does things like getting the canvas context on load.
moved state from game to shared.