Conway's game of life on HTML5 canvas