     (x: +ics/2, y: -ics/2)
   ]
 
-renderCommand = (ctx, what, where, current=false) ->
+renderCommand = (ctx, what, where, current, rev = false) ->
   cs = command_size
   ics = inner_command_size
 

    if @mode == levelMode.FULLPLAYING &&
       @current_command == @commands.length
      @mode = levelMode.TURNAROUND
    true
  else if @mode == levelMode.TURNAROUND
    @mode = levelMode.REVPLAYING
    @advanceCurrentCommand()
    return true
  else
    false


setupLevel = (initial_bot_location) ->
  o =
    initial_bot_location: initial_bot_location
    bot: (render: renderBot)
    commands: [ ]
    current_command: 0

  click: clickControlPanel

control_panel = setupControlPanel()
level_state = setupLevel((xi:0, yi:5, dir:0), (xi:6, yi:5))

stop = false

