working on 1d3c rules