Game of Life implementation in JAVA