refactor code into TBitGridCell objects, step 2