public Coords passedThroughPrevious(Coords c){
  if (passedThrough.size() == 0) {
    return getPosition();
  }
  Coords prevCrd=passedThrough.get(0);
  for (  Coords crd : passedThrough) {
    if (crd.equals(c)) {
      break;
    }
    prevCrd=crd;
  }
  return prevCrd;
}

public Coords passedThroughPrevious ( Coords c ) { if ( passedThrough . size ( ) == 0 ) { return getPosition ( ) ; } Coords prevCrd = passedThrough . get ( 0 ) ; for ( Coords crd : passedThrough ) { if ( crd . equals ( c ) ) { break ; } prevCrd = crd ; } return prevCrd ; }
what coords were passed through previous to the given one
