gamestate stuff and rendering