n = {
          learn: function(reward) {
           // Do nothing;
          }
        };
        w.agents.push(a);
        smooth_reward_history.push([]);
      }
    }

    var w; // global world object
    var current_interval_id;
    var skipdraw = false;
    function start() {
      canvas = document.getElementById("canvas");
      ctx = canvas.getContext("2d");
      
      eval($("#agentspec").val())

      w = new World();
      w.agents = [];
      for(var k = 0; k < 1; k++) {
        var a = new 