boolean oppositeTurn(MoveStep turn2){
switch (type) {
case TURN_LEFT:
    return turn2.getType() == MoveStepType.TURN_RIGHT;
case TURN_RIGHT:
  return turn2.getType() == MoveStepType.TURN_LEFT;
default :
return false;
}
}

boolean oppositeTurn ( MoveStep turn2 ) { switch ( type ) { case TURN_LEFT : return turn2 . getType ( ) == MoveStepType . TURN_RIGHT ; case TURN_RIGHT : return turn2 . getType ( ) == MoveStepType . TURN_LEFT ; default : return false ; } }
returns whether the two step types contain opposite turns
