Japan survive in World Cup despite 1-0 loss to Poland