public void testCollisionWhithEnemies(){
        Iterator<Enemy> i = enemies.iterator();
        while(i.hasNext()){
            Enemy e = i.next();

            if(player.getRect().intersects(e.getRect())){
                player.hp = player.hp - 1;
                i.remove();
            }
        }
        if((player.getRect().intersects(boss.getRect()))&&(bossID > 0)) {
            player.hp = player.hp - 1;
        }
    }