         @move_control = next_move_control
         @animation_mode = levelAnimMode.MOVING
         @show_current_command = step_command
+      else
+        # TODO: Need to play a death animation and restart
 
   # immediately run this if we switched to MOVING above
   if @animation_mode == levelAnimMode.MOVING


  @show_current_command = 0
  @next_command = 0

  @mode = levelMode.STOP

  return

resetAndRunLevel = ->
  @reset()
  @mode = levelMode.PLAYFWD
  @last_t = Date.now()/1000
  @animation_mode = levelAnimMode.READY
  delete @move_control

  return


  clear(prog_cnv, prog_ctx)

  level_state.animate(t)
  level_state.render(level_ctx, prog_ctx, t)

  #stop = true
  
