public void update(long currentTime, boolean[] attackStatus){
        if(isLevelEnd()){
            context.setGameState(MainPlay.WIN_STATE);
            return;
        }
        updateEnemies(currentTime);

        for(int i = 0; i< 3; i++){
            heroes[i].update(currentTime, attackStatus[i]);
            if(heroes[i].isAttacking()){
                applyAttack(heroes[i].getAttack(),i);
                heroes[i].finishAttack();
            }
        }     
        eg.update(currentTime);
    }