Simple Conway's game of life in HTML5 Canvas