JS implementation of Convay`s life game