init seed for better random number
gestion of the null end by unsufficient remaining pieces