java implementation of conway's game of life with toroidal board evaluation