PHASE2

%%Prepare for Attack
sequenceDiagram
    actor p as :User
    participant s as :System
    p ->> s : selectTerritory()
    p ->> s : changePhase()
    s -->> p : Switches to fortify phase
    p ->> s : fortifyTerritory()
    opt sufficient army
        s -->> p : Proceeds to offense stage
    end
    opt insufficient army
        p ->> s : endTurn()
    end
%%{init: {"theme": "default"}%%
%%Save/Load
sequenceDiagram
    actor p as :Player
    participant s as :System
    %% Game Save Scenario
    opt Save Game
        p ->> s : Selects "Save Game"
        s -->> p : Requests save name (if necessary)
        p ->> s : Confirms save name
        s -->> p : Saves game progress
    end
    %% Game Load Scenario
    opt Load Game
        p ->> s : Selects "Load Game"
        s -->> p : Presents list of saved games
        p ->> s : Selects a saved game to load
        s -->> p : Loads chosen game state
    end
%% End Turn
sequenceDiagram
    actor p as :Player
    participant s as :System
    p ->> s : Executes game actions
    p ->> s : Decides to end turn
    p ->> s : Selects "End Turn" option
    s -->> p : Confirms receipt of end turn action
    %% Transition to next player
    s -->> s : Concludes current player's turn
    s -->> s : Initiates next player's turn