added code for mapping cell possibilities to boxes