public int compare(Object o1, Object o2) { MovePath first = (MovePath) o1; MovePath second = (MovePath) o2;
public int compare(MovePath first, MovePath second) {
        public int compare(Object o1, Object o2) {            MovePath first = (MovePath) o1;            MovePath second = (MovePath) o2;            int firstDist = first.getMpUsed() + first.getFinalCoords().distance(destination) + getFacingDiff(first);            int secondDist = second.getMpUsed() + second.getFinalCoords().distance(destination) + getFacingDiff(second);            return firstDist - secondDist;        }