Fixed cell adjacency calculation. Fixed backwards width height parameters