My realisation of game of life