working on maps represented as cells