Initial code to add the flags for the collected cells. And fix a bug
when displaying the background lines