public void updateHealth(){
        takeDamage();
        
        switch (health) {
            case 0: {
                setHealthIcon(nohealth);
                break;
            }
            case 1: {
                setHealthIcon(onehealth);
                break;
            }
            case 2: {
                setHealthIcon(twohealth);
                break;
            }
            case 3: {
                setHealthIcon(threehealth);
                break;
            }
            case 4: {
                setHealthIcon(fourhealth);
                break;
            }
            case 5: {
                setHealthIcon(fullhealth);
                break;
            }
        }
        
        if(health == 0){
            setDead(true);
        }
        
    }