Endeavor: Rite of Passage: Fix - 9/30/25

Fixed tower defense loss conditions - Adjustments to formation code to prevent errors causing formation function to fail permanently