Defend area v2

Not perfect, I know, but I want to wait until the gamestate pr is merged, and then implement it for the defend area task.