Java version of game of life, following Reddit's DaliyProgrammer challenge 165