refactor code into TBitGridCell objects, step 1