restructured a bunch to figure out drawing and gamestate