game loop updated