Bryan's Brain implementation in JS & canvas.