Lights Out! using JavaScript & HTML5 Canvas