@Override public void initialize() throws GameActionException { if (rc.getRoundNum() != 0) { return; } Signal[] signals = rc.emptySignalQueue(); rc.broadcastSignal(GameConstants.MAP_MAX_HEIGHT * GameConstants.MAP_MAX_HEIGHT); for (Signal s : signals) { if (s.getTeam() == myTeam) { heiarchy++; } } rc.setIndicatorString(1, "I am the " + heiarchy + ": " + rc.getRoundNum()); if (heiarchy == -1) { goalLocation = rc.getLocation(); rc.broadcastMessageSignal(1337, 0, 100 * 100); leaderId = rc.getID(); leaderLocation = rc.getLocation(); } else { heiarchy -= 1; for (Signal s : signals) { if (s.getMessage() != null) { if (s.getMessage()[0] == 1337) { leaderId = s.getID(); leaderLocation = s.getLocation(); goalLocation = leaderLocation; break; } } } } }