GameOfLife in Java