var skipdraw = false;
    function start() {

      env = new PuckWorld();

      initDraw();      

      eval($("#agentspec").val())

      //agent = new RL.ActorCritic(env, spec);
      agent = new RL.DQNAgent(env, spec);
      //agent = new RL.RecurrentReinforceAgent(env, {});
      initFlot();

      // slider sets agent epsilon
      $("#slider").slider({
        min: 0,
        max: 1,
        value: agent.epsilon,
        step: 0.01,
        slide: function(event, ui) {
          agent.epsilon = ui.