public enum Direction{
	STAY		 ( 0,   0, 0),
     SPIN_BACK	 ( 0, 180, 0),
     FORWARD	 ( 0,   0, 1),
     BACKWARD	 ( 0,   0,-1),
     ARC_LEFT	 (-1,  -90, 0),
     ARC_RIGHT  ( 1,  90, 0),
     SPIN_LEFT	 ( 0,  90, 0),
	SPIN_RIGHT ( 0, -90, 0);
	 
    public int radius;
    public int angle;
    public int travel;

    Direction(int radius, int angle, int travel){
        this.radius = radius;
	   this.angle = angle;
	   this.travel = travel;
    }
    public Direction invert(){
     switch(this){
		  case STAY:
				return STAY;
          case SPIN_BACK:
               return SPIN_BACK;
          case FORWARD:
               return BACKWARD;
          case BACKWARD:
               return FORWARD;
          case SPIN_LEFT:
               return SPIN_RIGHT;  
          case SPIN_RIGHT:
               return SPIN_LEFT;
		  case ARC_LEFT:
				return ARC_RIGHT;
		  case ARC_RIGHT:
				return ARC_LEFT;	
          default:
               return null;                   
          }
    }
}
@@ -476,16 +476,19 @@
 n invert
+All
 ()%7B%0A    
@@ -955,12 +955,418 @@
 urn 
-null
+this;                   %0A          %7D%0A    %7D%0Apublic Direction invertTurns()%7B%0A     switch(this)%7B%0A          case SPIN_BACK:%0A               return SPIN_BACK;%0A          case SPIN_LEFT:%0A               return SPIN_RIGHT;  %0A          case SPIN_RIGHT:%0A               return SPIN_LEFT;%0A           case ARC_LEFT:%0A%09%09 return ARC_RIGHT;%0A%09    case ARC_RIGHT:%0A%09%09  return ARC_LEFT;%09%0A          default:%0A               return this
 ;   
@@ -1401,8 +1401,9 @@
 %0A    %7D%0A%7D
+%0A

Update Direction.java