Game of life implemented in Java