       velocity = @race.getVelocity @color
       acceleration = @race.getAcceleration @color
       angle = @race.getCarAngle @color
-      radius = @race.getPiece(@color).radius ? 999999
+      radius = @getRadius()
       throttle = @throttle
       predict = @prediction throttle
       angleS = @race.getAngularSpeed @color


      straightDistance = @race.straightDistanceAhead(@color)
      bendedPieceIndex = @race.nextBendedPieceIndex(@color)
      bendedPiece = @race.getPieceAt bendedPieceIndex
      radius = @race.getRadiusOnLane bendedPieceIndex, @race.getCarLane(@color)
      @targetVelocity = @maxVelocityForRadius radius
      @adjustThrottle straightDistance

      logHeader()
      @physics = physics.create()
      @throttles = []
      @maxSlipInitialized = no
      @factorMaxSlip = 0.5

#      if @color is 'red'
#        @throttle = 0.7
