clicking the barrack sets the owned flag