added first draft of alliance functionality