public void checkAttack(Player player) {
        for (int i = 0; i < bullets.size(); i++) {
            if (player.intersects(bullets.get(i))) {
                player.isHit();
                bullets.remove(i);
            }
        }
    }