finished flee function, continued work on potentialDamage