AngularJS application : evolves generations of dead or alive cells in a game board