Replaced key PLAYER_ID with UNITS in state for unit allocation.