almost finished refactoring findcells.c according to the wrapper method.