public Creature mostDamagedCreature(){ Creature mostDamaged = null; float mdHitpoints = 0f; for ( Creature c : creatureList ) { float damage = c.getMaxHitPoints() - c.getHitPoints(); if (damage > mdHitpoints) { mostDamaged = c; mdHitpoints = damage; } } return mostDamaged; }