Update renderer.js

Added probability, now bug free :)