rafactored grids, ready to move on to rest of neural network design