public static void updateEnergy(double completed){
        percent = (completed >  percent) ? completed : percent;
        if (energy < Var.LOWEST_PRICE && Entities.heroes.size() == 0){
            newRound();
            round++;
            if(round >= Var.MAX_ROUNDS){
                Var.GAME_END_STRING = "PEASANTS WIN";
                itsNotOver = false;
            }

        }
    }