A Game of Life coding exercise in PHP