added doorstate, roadstate, general game loop stuff