Finished revealCell function and added flagCell function