Moved distance methods from Creature.java to Math.java.