    public void startGame() {
        d("Starting game.");
        state = GameState.INGAME;
        updateSigns();
        int item = rand.nextInt(players.size());
        d(item); 
        int i = 0;
        for (String name : players.keySet()) {
            if (i == item) {
                it = name;
            }
            i++;
        }
        d("Selected IT: " + it);
        for (Player player : getPlayers()) {
            Manager.saveInventory(player);
            player.setHealth(player.getMaxHealth());
            player.setFoodLevel(20);
            removePotionEffects(player);
            if (player.getName().equalsIgnoreCase(it)) {
                d("Equipping IT: " + player.getName());
                Equip.equipIt(player);
            } else {
                d("Equipping other: " + player.getName());
                Equip.equipOther(player);
            }
            player.setHealth(player.getMaxHealth());
            player.teleport(spawn);
        }
        setupScoreboard();
        if (safeperiod) {
            d("Safe period active");
            safe = true;
            new BukkitRunnable() {
                @Override
                public void run() {
                    d("Safe period no longer active.");
                    safe = false;
                }
            }.runTaskLater(plugin, plugin.getConfig().getLong("safe-period-time", 20L) * 20);
        }
        endRun = new BukkitRunnable() {
            public void run() {
                d("Ending game.");
                reset(false);
            }
        };
        endRun.runTaskLater(plugin, plugin.getConfig().getLong("match-duration", 20L) * 400);
    }

    public void startGame() {
        d("Starting game.");
        state = GameState.INGAME;
        updateSigns();
        int item = rand.nextInt(players.size());
        d(item); 
        int i = 0;
        for (String name : players.keySet()) {
            if (i == item) {
                it = name;
            }
            i++;
        }
        d("Selected IT: " + it);
        for (Player player : getPlayers()) {
            Manager.saveInventory(player);
            player.setHealth(player.getMaxHealth());
            player.setFoodLevel(20);
            removePotionEffects(player);
            if (player.getName().equalsIgnoreCase(it)) {
                d("Equipping IT: " + player.getName());
                Equip.equipIt(player);
            } else {
                d("Equipping other: " + player.getName());
                Equip.equipOther(player);
            }
            player.setHealth(player.getMaxHealth());
            player.teleport(spawn);
        }
        setupScoreboard();
        if (safeperiod) {
            d("Safe period active");
            safe = true;
            new BukkitRunnable() {
                @Override
                public void run() {
                    d("Safe period no longer active.");
                    safe = false;
                }
            }.runTaskLater(plugin, plugin.getConfig().getLong("safe-period-time", 20L) * 20);
        }
        endRun = new BukkitRunnable() {
            public void run() {
                d("Ending game.");
                reset(false);
            }
        };
        endRun.runTaskLater(plugin, plugin.getConfig().getLong("match-duration", 20L) * 20);
    }
