the empty spaces can be chosen randomly