Updated GUI Javascript to draw the Gamestate.