Changed some parts of PoolOfLife to make it more modular