Game of Life implemented in Java