fixing Luis prob files missing
adjusted coded to work with random amount of cells
fixing merge conflicts