code modified

the version adapts the Conway's game concept