add logic to draw cells