Game of life Simulation In Java