Conway's Game of Life done in AngularJS