ilon);
        $("#eps").html(agent.epsilon.toFixed(2));
        // kill learning rate to not learn
        agent.alpha = 0;
      });
    }

    function toggleAgentView() {
      agentView = !agentView;
    }

    var lastKey = null;
    document.onkeydown = function(e) {
      var event = window.event ? window.event : e;
      lastKey = event.keyCode
      if(lastKey == 37 || lastKey == 38 || lastKey == 39 || lastKey == 40) {
        enableHuman();
        e.preventDefault();
        if(lastKey == 37) {
