Quite difficult to check everything cause of the formatting but BombDetonated(Agent:agent):void=
doesn’t look right in your UpdateBeacons
method.
Try removing the :void=
after calling the BombDetonated
method so it looks like this BombDetonated(Agent:agent)
.