Merge all boolean (actually char) flags into a single bit-mask, add functions cell_get_flag, cell_set_flag, and cell_clear_flag to make using them easier and less error-prone.
char
cell_get_flag
cell_set_flag
cell_clear_flag