Game of Life in Java