first step in moving to lists instead of array

needs major refactor
* count of cells stored in two places
* loops over the list are crazytown