public void getBehavior(Player p)
    {
        if(first)
        {
            Random rand = new Random();
            int n = rand.nextInt(behavior.size());
            System.out.println(name+ " " +behavior.get(n).getDescription());
            int damage = behavior.get(n).getDamage() - p.getDefense();
            if(damage < 0)
            {
                damage = 0;
            }
            p.setHitpoints(p.getHitpoints() - damage);
            if(damage > 0)
            {
                System.out.println("You have "+p.getHitpoints()+" hearts remaining.");
            }
            if(damage <= 0)
            {
                System.out.println("It didn't hurt at all.");
            }
        }
        else
        {
            first = true;
            System.out.println(name+ " " +behavior.get(0).getDescription());
            System.out.println("It didn't hurt at all.");
        }
    }