   for o in @obstacles
     if o.isHit(@bot.xi, @bot.yi, @frame)
       console.log("hit obstacle at frame " + @frame)
-      # TODO: error display, take back move (I think that goes elsewhere)
-      #return false
+      return false
 
   @advanceNextCommand()
 


###


level_cnv = document.getElementById('level')


    o.render(ctx, show_frame, frame_t, t)

  # bot
  @bot.render(ctx,
    if @animation_mode == levelAnimMode.DYING
      (t - @move_control.start.t) * bot_speed
    else
      0
  )

  # commands
  ctx = prog_ctx
