Refactored so that code was cleaner and now the checked and colored cells stay checked and colored correctly when user scrolls and cells are reused.
Added some TODOs