fn apply_spell_effects(state: &mut State) -> bool
Applies spell effects to state and returns true if the player has won.