Successfully puts any number of digits into a two-dimensional array