updated gamestate and main