Conway's game of life using html5 canvas