 1) ctx.fillStyle = "rgb(255, 150, 150)";
          if(it.type === 2) ctx.fillStyle = "rgb(150, 255, 150)";
          ctx.beginPath();
          ctx.arc(it.p.x, it.p.y, it.rad, 0, Math.PI*2, true);
          ctx.fill();
          ctx.stroke();
        }
      }
    }

    // Tick the world
    var smooth_reward_history = []; // [][];
    var smooth_reward = [];
    var flott = 0;
    function tick() {

      if(simspeed === 3) {
        for(var k=0;k<50;k++) {
          w.tick();
        }
      } else {
  