extract broadcast! function and add hack to game loop