implemented basic structure of game of life without printing proper output
Fixing third scenario