fixed bug with not checking all cells