life game implement in Java