added proper test for hash
moved mod to be usable in all grids
added incomplete implementation of bit grid