finished update gamestate, needs to be tested