Little game of life optimisation